美文网首页
pod search 报错 port443 (更新了macOS

pod search 报错 port443 (更新了macOS

作者: Edviin_2de8 | 来源:发表于2020-03-03 16:00 被阅读0次

pod search AFN 如下错误

[!] CDN: trunk Repo update failed - 2 error(s):
CDN: trunk URL couldn‘t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/a/2/afn/1.0.0/afn.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)
CDN: trunk URL couldn‘t be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/4/a/2/afn/1.2.0/afn.podspec.json, error: Failed to open TCP connection to raw.githubusercontent.com:443 (Connection refused - connect(2) for "raw.githubusercontent.com" port 443)

解决办法

执行pod repo remove trunk移除trunk源,pod search就都正常了!

注意:podfile文件中一定要指定master源,因为现在默认是trunk源

相关文章

网友评论

      本文标题:pod search 报错 port443 (更新了macOS

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