M1 pod install error Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle

LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle - /Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
  • 安装ffi
    sudo arch -x86_64 gem install ffi
  • pod install 出错
    arch -x86_64 pod install

你可能感兴趣的:(M1 pod install error Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle)