美文网首页
Failedtoconnecttoraw.githubuserc

Failedtoconnecttoraw.githubuserc

作者: xiaoyouPrince | 来源:发表于2020-02-19 14:40 被阅读0次

问题

执行 pod update 执行报错,如下

[!] CDN: trunk URL couldn't be downloaded: https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/6/7/d/boost-for-react-native/1.63.0/boost-for-react-native.podspec.json, error: execution expired

原因

由于某些你懂的因素,导致GitHub的raw.githubusercontent.com域名解析被污染了。

解决方法

通过修改hosts解决此问题

查询真实IP

https://www.ipaddress.com/查询raw.githubusercontent.com的真实IP。

up-730db80898b3bb975647e99575be12ef87a.png

修改 hosts

sudo vim /private/etc/hosts

添加如下内容:

199.232.28.133 raw.githubusercontent.com

重新执行

重新执行 pod update 即可

- end -

相关文章

网友评论

      本文标题:Failedtoconnecttoraw.githubuserc

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