問題
今天升級 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