将 Cocoa pod 安装到 M1 Mac mini 时出错

时间:2021-02-19 05:00:53

标签: ios macos apple-m1

我有带 M1 芯片的 Mac mini。 MacOS 是 Big Sur 11.2.1。 我正在尝试将可可豆安装到 Mac mini 中,但出现以下错误。

错误:加载命令:安装(LoadError) dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle, 0x0009):/Library/Ruby/Gems/2.6.0/gems/date-3.1中缺少兼容的arch .1/lib/date_core.bundle - /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 :(得分:1)

转到以下路径。 '/Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/' 并删除“date_core.bundle”包文件和“date.rb”文件。

转到以下路径。 '/Library/Ruby/Gems/2.6.0/extensions/universal-darwin-20/2.6.0/date-3.1.1/' 并删除“date_core.bundle”包文件。

并在终端上尝试“sudo gem install cocoapods”命令。

相关问题