M1及以上芯片的项目中cocoapods报错

刚买的 M1 Max 的16寸Mac,突然发现执行了 pod install后报了如下错:

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: [https://www.ruby-lang.org/bugreport.html](https://links.jianshu.com/go?to=https%3A%2F%2Fwww.ruby-lang.org%2Fbugreport.html)

[IMPORTANT]
Don't forget to include the Crash Report log file under
DiagnosticReports directory in bug reports.
解决方案:

安装最新版的homebrew
使用brew install cocoapods 安装cocoapods
再使用pod install 即可。

Brew 安装无需翻墙:

使用官网的发现会出现443或者超时的问题,解决方法是使用中科大的镜像:

/usr/bin/ruby -e "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install)"

详见:https://www.cnblogs.com/joyce33/p/13376752.html

你可能感兴趣的:(M1及以上芯片的项目中cocoapods报错)