Home > Blockchain >  CocoaPods fail for Flutter Gallery
CocoaPods fail for Flutter Gallery

Time:04-28

I am trying to start Flutter Gallery with flutter run -d macos. It fails:

...
Error: To set up CocoaPods for ARM macOS, run:
  arch -x86_64 sudo gem install ffi

Exception: Error running pod install

Running arch -x86_64 sudo gem install ffi does not help. Running flutter clean does not help too.

What can be missing?

I have Apple M1 Pro chip in my laptop. Can it be the reason?

  • My flutter version: 2.13.0-0.0.pre.776
  • The full console output is here.

CodePudding user response:

Not sure if pod install solves your problem, but installing ffi is not enough. You must also run the pod commands using arch.

For example.

arch -x86_64 pod install --repo-update
  • Related