CocoaPods CDN: trunk Repo update failed

这一生的挚爱 提交于 2019-12-03 14:35:08

 

问题

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

 

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