CocoaPods CDN: trunk URL couldn'

作者: 剧变 | 来源:发表于2019-12-13 16:46 被阅读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.用手机热点更新(实测有效)

    相关文章

      网友评论

        本文标题:CocoaPods CDN: trunk URL couldn'

        本文链接:https://www.haomeiwen.com/subject/jwofnctx.html