M1芯片pod问题
M1芯片pod问题
-
换了M1芯片的mac后,在Xcode跑项目报pod错误,提示run pod install更新pod,但是去终端跑命令时又报错
-
然后在github上看到一个老哥的方法
https://github.com/CocoaPods/CocoaPods/issues/10723#issuecomment-864408657 -
Did you try:
sudo arch -x86_64 gem install ffi
-
And run:
arch -x86_64 pod install
instead ofpod install.
-
I hope this will help you.
-
如果有什么其他pod问题,记得都带上arch -x86_64的前缀