代码管理工具使用技能iOS SDK

CocoaPods CDN: trunk URL couldn'

2019-12-13  本文已影响0人  剧变

某天pod update时,一堆红字,我就知道,又有坑了
具体错误如下:

CDN: trunk URL couldn't be downloaded: 
https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/8/a/7/Moya/14.0.0-beta.6/Moya.podspec.json, 
error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

基本上问题的根源就是raw.githubusercontent.com:443这个ip被墙了,所以目前我发现的解决方案有两种

1. 打开podfile文件,切换master下载(目前默认是trunk)

source 'https://github.com/CocoaPods/Specs.git'

2.用手机热点更新(实测有效)

上一篇下一篇

猜你喜欢

热点阅读