I'm using a MacBook M1 chip with a macOS Ventura 13.0, working on the flutter app.
I'm getting this error while I run this command. sudo arch -x86_64 gem install ffi. Can anyone help me, how to fix this?
CodePudding user response:
This fixed my issue:
in regular terminal:
sudo arch -x86_64 gem install ffi
then in the project root
cd ios && arch -x86_64 pod install && cd ../
I also had to delete Flipper lines in ios/Podfile to get the app running. (But that's probably not related to your problem)
CodePudding user response:
I do this when this happens on my M1 and it fixes the issue :
sudo arch -x86_64 gem install ffi
arch -x86_64 pod repo update
arch -x86_64 pod update
arch -x86_64 pod install