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
将来的你会感谢今天如此努力的你!
版权声明:本文为博主原创文章,未经博主允许不得转载。