[!] CDN: trunk Repo update failed - xx error(s):
CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/...
...
CocoaPods 1.8后将CDN切换为默认的spec repo源。
1.Podfile文件中添加source源:
source 'https://github.com/CocoaPods/Specs.git'
或者指定为国内的镜像:
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
2.执行pod repo remove trunk
移除trunk源。
参考:https://www.jianshu.com/p/bf1cbe49cb5d
在host文件中添加:
151.101.76.133 raw.githubusercontent.com
如果这个ip无效,可以根据这个查询真实IP自行查询。
参考:https://www.ioiox.com/archives/62.html https://mirrors.tuna.tsinghua.edu.cn/help/CocoaPods/