11.3系統(tǒng)會(huì)報(bào)錯(cuò)
LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle, 0x0009): could not use '/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi_c.bundle' because it is not a compatible arch - /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'
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.4/lib/ffi.rb:5:in `rescue in <top (required)>'
網(wǎng)上有說(shuō)執(zhí)行以下方法就可以了sudo arch -x86_64 gem install ffi急但, arch -x86_64 pod install,但是每次管理pod install第三方庫(kù)的時(shí)候需要執(zhí)行arch -x86_64 pod install
所以還是建議同志們把系統(tǒng)升級(jí)到最新系統(tǒng),目前系統(tǒng)是11.6哺呜,可以解決安裝cocoapods安裝后出現(xiàn)的問(wèn)題