CDN: trunk Repo update failed
Mac版本: 10.15.1
pod版本: pod --version
1.8.4
pod install 的时候遇到这个问题的话,可以参考一下.
1 pod repo list
查看列表, 可能会有3种情况: 0repos / 1 repo(master) / 2 repos(master + trunk)
根据自己不同的repo数量, 选择合适自己的方法.
0 repo:
1. cd ~/.cocoapods/repos 进入指定目录
2. git clone https://github.com/CocoaPods/Specs.git master
执行完毕后, 在podfile中添加 source 'https://github.com/CocoaPods/Specs.git'
最后执行pod install 正常
1 repo:
如果只有一个master的话, 就直接在podfile中添加 source ‘https://github.com/CocoaPods/Specs.git’
最后执行pod install 正常
2 repos:
既有master又有trunk
1. 删除trunk pod repo remove trunk
2. 执行完毕后, 在podfile中添加 source ‘https://github.com/CocoaPods/Specs.git’
最后执行pod install 正常
添加源之后的podfile: