关于cocoapods更新之后报 CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/5/0/9/FBSnapshotTestCase/2.1.3/FBSnapshotTestCase.podspec.json Response: Couldn't connect to server
网上找到了一个大神的解决办法,方便下次使用,在此记录
解决办法 1
-
修改hosts 添加
-
hosts 文件路径:
/etc/hosts
199.232.4.133 raw.githubusercontent.com
解决办法 2
-
在
Podfile
文件添加清华镜像source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
网友评论