Skip to content

Commit

Permalink
docs: update CMake instructions (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
okwasniewski committed Feb 6, 2024
1 parent 473dc01 commit 4e63158
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,22 @@ React Native Vision OS allows you to write visionOS with full support for platfo
1. Make sure you have a [proper development environment setup](https://reactnative.dev/docs/environment-setup)
2. Download the latest Xcode beta [here](https://developer.apple.com/xcode/).
3. Install visionOS Simulator runtime.
4. Initialize the project using this command:
4. Install the latest version of CMake (at least v3.28.0)
5. Initialize the project using this command:

```
npx @callstack/react-native-visionos@latest init YourApp
```
5. Next, go to `YourApp/visionos` folder and run following commands to install Pods:
6. Next, go to `YourApp/visionos` folder and run following commands to install Pods:

```
cd visionos
bundle install
bundle exec pod install
```

6. If you want to use Hermes, you need to install CMake from source (v3.28.0)

```sh
brew install cmake --HEAD
```

If not, remember to disable it in `Podfile`.

8. Open `YourApp/visionos/YourApp.xcworkspace` using Xcode 15 Beta.
9. Build the app by clicking the "Run" button in Xcode.
7. Open `YourApp/visionos/YourApp.xcworkspace` using Xcode 15 Beta.
8. Build the app by clicking the "Run" button in Xcode.

## Platform guidelines

Expand All @@ -64,4 +57,4 @@ Usage:
node ./scripts/oot-release.js --new-version "<visionos-version>" --react-native-version "<react-native-version>" --one-time-password "<otp>"
```

To test releases and template we use [Verdaccio](https://verdaccio.org/).
To test releases and template we use [Verdaccio](https://verdaccio.org/).

0 comments on commit 4e63158

Please sign in to comment.