CocoaPods官方地址
出现报错
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/all_pods_versions_a_7_5.txt, error: execution expired
解决方法1
pod repo list 查看源列表
pod repo remove trunk 移除trunk源
只有移除掉问题才解决!!!
解决方法2
就是不用新版本的 CDN
就是在 Podfile 加上
source 'https://github.com/CocoaPods/Specs.git'
增加后的 Podfile
source 'https://github.com/CocoaPods/Specs.git'
target 'XQWatchDemo' do
use_frameworks!
pod 'AMapLocation'
pod 'AMapNavi'
end
网友评论