You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/rn-tester/README.md
+36-3Lines changed: 36 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,11 +35,44 @@ Both macOS and Xcode are required.
35
35
4. Open the generated `RNTesterPods.xcworkspace`. This is not checked in, as it is generated by CocoaPods. Do not open `RNTesterPods.xcodeproj` directly.
36
36
37
37
#### Note for Apple Silicon users
38
+
If you own a Mac laptop with Apple Silicon, follow these additional steps for proper setup:
38
39
39
-
If you own a Mac laptop with Apple Silicon, you need to run some different commands to install and run cocoapods.
40
+
1. Install Rosetta 2 if you haven't already:
41
+
```sh
42
+
softwareupdate --install-rosetta
43
+
```
44
+
45
+
2. Install Bundler using Rosetta:
46
+
```sh
47
+
arch -x86_64 sudo gem install bundler
48
+
```
40
49
41
-
-`sudo arch -x86_64 gem install ffi`: this installs the `ffi` package to load dynamically-linked libraries.
42
-
-`arch -x86_64 pod install`: this run `pod install` with the right architecture.
50
+
3. Install the required packages:
51
+
```sh
52
+
# Install ffi package to load dynamically-linked libraries
53
+
sudo arch -x86_64 gem install ffi
54
+
55
+
# Install CocoaPods dependencies using the correct architecture
56
+
arch -x86_64 bundle install
57
+
58
+
# Install pods with the correct architecture
59
+
arch -x86_64 pod install
60
+
```
61
+
62
+
If you encounter build issues, you may need to clean and rebuild:
0 commit comments