CocoaPods CDN: trunk Repo update failed

 

问题

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

 

 

 

解决

在 Podfile 加上 source ‘https://github.com/CocoaPods/Specs.git’, 就是不用新版本的 CDN

原本的 Podfile

target 'XQWatchDemo' do

  use_frameworks!

  pod 'JPush'

end

 增加后的 Podfile

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

target 'XQWatchDemo' do

  use_frameworks!

  pod 'JPush'

end

 

posted @ 2019-11-05 17:52  Mr.陳  阅读(2008)  评论(0编辑  收藏  举报