无法安装 cocoapods MacBook Air m1

时间:2021-06-27 14:06:17

标签: cocoapods apple-m1

无法运行 sudo gem install ffi 我收到此错误

错误:加载命令:安装(LoadError) dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle, 9): 没有找到合适的图像。有没有发现: /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle:mach-o,但架构错误 /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle:mach-o,但架构错误 - /Library/Ruby/Gems/2.6.0/gems/date-3.1。 1/lib/date_core.bundle 错误:在执行 gem 时......(NoMethodError) 未定义的方法 `invoke_with_build_args' for nil:NilClass

1 个答案:

答案 0 :(得分:0)

我通过将 ruby​​ 版本更新到最新版本来解决我的问题