Created
November 20, 2021 22:30
-
-
Save SeanCassiere/74e3ef4720acc42a9130ce379c0a6018 to your computer and use it in GitHub Desktop.
The steps I take to solve the Pod Install Error on my M1 Mac.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# React Native on M1 | |
Currently, when I scaffold a React Native application using the CLI, I am unable to complete the pod install for iOS. | |
## What I do to solve this? | |
1. After the Pod Install from the CLI fails, `cd` into the `ios` folder. | |
2. Open the terminal in Rosetta. | |
3. Deintegrate Pod. | |
```bash | |
pod deintegrate | |
``` | |
4. Install FFI | |
```bash | |
sudo arch -x86_64 gem install ffi | |
``` | |
5. Update or Install the Pod Dependancies. (take your pick) | |
```bash | |
arch -x86_64 pod update | |
//or | |
arch -x86_64 pod install | |
``` | |
6. If the install is still failing, try the following. | |
```bash | |
arch -x86_64 pod install --repo-update | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment