Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 36 additions & 3 deletions packages/rn-tester/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,44 @@ Both macOS and Xcode are required.
4. Open the generated `RNTesterPods.xcworkspace`. This is not checked in, as it is generated by CocoaPods. Do not open `RNTesterPods.xcodeproj` directly.

#### Note for Apple Silicon users
If you own a Mac laptop with Apple Silicon, follow these additional steps for proper setup:

If you own a Mac laptop with Apple Silicon, you need to run some different commands to install and run cocoapods.
1. Install Rosetta 2 if you haven't already:
```sh
softwareupdate --install-rosetta
```

2. Install Bundler using Rosetta:
```sh
arch -x86_64 sudo gem install bundler
```

- `sudo arch -x86_64 gem install ffi`: this installs the `ffi` package to load dynamically-linked libraries.
- `arch -x86_64 pod install`: this run `pod install` with the right architecture.
3. Install the required packages:
```sh
# Install ffi package to load dynamically-linked libraries
sudo arch -x86_64 gem install ffi

# Install CocoaPods dependencies using the correct architecture
arch -x86_64 bundle install

# Install pods with the correct architecture
arch -x86_64 pod install
```

If you encounter build issues, you may need to clean and rebuild:
```sh
# Clean existing builds
yarn clean-ios

# Remove and reinstall pods
arch -x86_64 bundle exec pod deintegrate
arch -x86_64 bundle exec pod install
```

Then proceed with opening the workspace in Xcode:
```sh
open RNTesterPods.xcworkspace
```

### Running on Android

Expand Down
Loading