問題
今天升級(jí) CocoaPods 到 1.8.4 版本
但是隨即問題就來了, 執(zhí)行 pod install 下載庫時(shí),出現(xiàn)錯(cuò)誤
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_a_7_5.txt, error: execution expired
解決
后來就去查了半天資料, 最終在 github CocoaPods issues 找到解決方案
就是在 Podfile 加上 https://github.com/CocoaPods/Specs.git
原本的 Podfile
target 'XQWatchDemo' do
use_frameworks!
pod 'AMapLocation'
pod 'AMapNavi'
end
增加后的 Podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'XQWatchDemo' do
use_frameworks!
pod 'AMapLocation'
pod 'AMapNavi'
end