CocoaPods CDN: trunk Repo update failed

mac2024-04-07  47

文章目录

问题解决

问题

今天升级 CocoaPods 到 1.8.4 版本 但是随即问题就来了, 执行 pod install 下载库时,出现错误

[!] 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 加上 source ‘https://github.com/CocoaPods/Specs.git’, 就是不用新版本的 CDN

原本的 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
最新回复(0)