【问题标题】:Getting error while installing Cocoa pod into the M1 Mac mini将 Cocoa pod 安装到 M1 Mac mini 时出错
【发布时间】:2021-02-19 05:00:53
【问题描述】:

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

ERROR:  Loading command: install (LoadError)
    dlopen(/Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle, 0x0009): missing compatible arch in /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle - /Library/Ruby/Gems/2.6.0/gems/date-3.1.1/lib/date_core.bundle
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass 

【问题讨论】:

标签: ios macos apple-m1


【解决方案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”命令。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-08-04
    • 2022-01-14
    • 1970-01-01
    • 2017-03-08
    • 2021-08-02
    • 2015-07-02
    • 2013-08-15
    • 1970-01-01
    相关资源
    最近更新 更多