执行pod install时卡在Installing GoogleUtilitiesComponents (1.1.0)无法继续
解决pod install卡在Installing GoogleUtilitiesComponents (1.1.0)的方案
- 清理CocoaPods本地缓存,执行命令
pod cache clean --all,完成后重新运行pod install - 手动删除指定缓存目录:找到路径
~/Library/Caches/CocoaPods/Pods/Release/GoogleUtilitiesComponents并删除,再执行pod install - 检查Podfile的源配置,确保添加了官方源
source 'https://cdn.cocoapods.org/',若访问不畅可替换为国内镜像源,比如source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git',之后先执行pod repo update再进行pod install - 更新CocoaPods到最新版本,执行命令
sudo gem install cocoapods,旧版本可能存在兼容性问题导致卡住 - 检查网络状态:切换到稳定网络(如手机热点),或关闭代理工具,避免网络波动或代理干扰依赖包下载
内容的提问来源于stack exchange,提问作者Rickfdalton
相关产品推荐
相关产品推荐

