0

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.Screenshot

Ranjan Sahoo
  • 31
  • 2
  • 5

2 Answers2

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