美文网首页工程架构
CocoaPods CDN: trunk Repo update

CocoaPods CDN: trunk Repo update

作者: 普通上班族老王 | 来源:发表于2019-10-31 13:42 被阅读0次

问题

今天升级 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

相关文章

网友评论

    本文标题:CocoaPods CDN: trunk Repo update

    本文链接:https://www.haomeiwen.com/subject/okftbctx.html