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

猜你喜欢

转载自www.cnblogs.com/chglog/p/11800118.html
今日推荐