This is the screenshot of the current situation. Its a Brand new Apple M1 MacBook. react is working fine but React-native is not getting installed properly. Tried various solutions but no luck.
Asked
Active
Viewed 5,950 times
0

Ranjan Sahoo
- 31
- 2
- 5
2 Answers
1
In my case I was able to do it natively.
Try this on native terminal.
brew install ruby #update to latest version
sudo gem install ffi
sudo gem install cocoapods
sudo gem install ethon #update to latest version
Note: This worked for me. Can't guarantee the same would happen for you.

Waleed Tariq
- 825
- 8
- 19
0
run the following commands in the ios directory of your React Native project
sudo arch -x86_64 gem install ffi
arch -x86_64 pod install
refer to this
Running CocoaPods on Apple Silicon (M1)
it is because of m1's architecture that you need to run different commands from those that are mentioned in the official docs of React Native

Kartik Malik
- 460
- 4
- 11