Skip to content

Instantly share code, notes, and snippets.

@SeanCassiere
Created November 20, 2021 22:30
Show Gist options
  • Save SeanCassiere/74e3ef4720acc42a9130ce379c0a6018 to your computer and use it in GitHub Desktop.
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.
# 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