- 使用公司的网络,运行pod install总是卡死,网上有的说是因为会更新pod工具导致卡死现象,建议替换
pod install
为:
pod install --verbose --no-repo-update
pod update --verbose --no-repo-update
- 试了下,网络差的情况下,用以上命令或者vpn都会报错,直接替换下载源镜像就解决了。备用下,每次报错都不记得地址跟怎么操作
https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
使用pod install 本地sdk,报错问题1:universal.arm64e-darwin21
- 问题:使用的是M1芯片的MacBook pro,在使用pod install 时报一堆异常错误,如下:
Analyzing dependencies
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.0/lib/ffi/library.rb:275: [BUG] Bus Error at 0x00000001003ec000
ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/DiagnosticReports
* /Library/Logs/DiagnosticReports
for more details.
Don't forget to include the above Crash Report log file in bug reports.
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
- 解决办法:安装64架构
- sudo arch -x86_64 gem install ffi
- arch -x86_64 pod install
参考:You may have encountered a bug in the Ruby interpreter or extension libraries.