CocoaPods CDN: trunk Repo update failed

半世苍凉 提交于 2020-01-21 02:29:16

问题

今天升级 CocoaPods 到 1.8.4 版本
但是随即问题就来了, 执行 pod install 下载库时,出现错误

 

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_a_7_5.txt, error: execution expired

解决

后来就去查了半天资料, 最终在 github CocoaPods issues 找到解决方案
就是在 Podfile 加上 https://github.com/CocoaPods/Specs.git

原本的 Podfile

 


target 'XQWatchDemo' do

  use_frameworks!

  pod 'AMapLocation'
  pod 'AMapNavi'

end

增加后的 Podfile

 

source 'https://github.com/CocoaPods/Specs.git'

target 'XQWatchDemo' do

  use_frameworks!

  pod 'AMapLocation'
  pod 'AMapNavi'

end


 

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!