Mac M1处理器在安装cocoapods时,会发生以下错误
LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle,
0x0009): missing compatible arch in
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle -
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
错误提示
LoadError - dlopen(/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle,
0x0009): missing compatible arch in
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle -
/Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/lib/ffi_c.bundle
解决办法:
* 在应用程序-实用工具里,打开终端 显示简介
2.勾选以Rosetta方式打开
3. 运行 sudo gem install cocoapods (之前安装过就略过)
4. 运行 sudo gem install ffi
5. 最后pod install