Home > database >  impossible to run flutter app with macbook m1
impossible to run flutter app with macbook m1

Time:09-11

Hello I buy an macbook m1 I have made a timemachine migration, I have upgrade android studio and xcode all is good. But when I try to run on my device I have first

error : pod out of date

so I try to

flutter clean remove pods folder and podfile.lock

pod repo update

but I have

Ignoring ffi-1.13.1 because its extensions are not built. Try: gem pristine ffi --version 1.13.1 /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')) - /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle (LoadError)

SO I have try

 sudo gem uninstall cocoapods

but now I can't install cocoapods

i have brew install cocoapods zsh: command not found: brew

CodePudding user response:

You can try running this command:

sudo arch -arm64e gem install ffi
  • Related