pod install 问题-其他问题

  1. 使用公司的网络,运行pod install总是卡死,网上有的说是因为会更新pod工具导致卡死现象,建议替换pod install 为:

pod install --verbose --no-repo-update
pod update --verbose --no-repo-update

  1. 试了下,网络差的情况下,用以上命令或者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架构
  1. sudo arch -x86_64 gem install ffi
  2. arch -x86_64 pod install

参考:You may have encountered a bug in the Ruby interpreter or extension libraries.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值