参考:curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused的几种解决方式
pod install
出现以下错误:
$ pod install
Analyzing dependencies
Downloading dependencies
Installing Bugly (2.5.2)
[!] Error installing Bugly
[!] /usr/bin/curl -f -L -o /var/folders/1t/byn45_dn6mn32sgpmp80hx0c0000gn/T/d20200623-5094-1ps1gmw/file.zip https://raw.githubusercontent.com/BuglyDevTeam/Bugly-iOS/master/release/Bugly-2.5.2.zip --create-dirs --netrc-optional --retry 2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused
解决办法:
1、查看raw.githubusercontent.com
对应的IP
(打开vpn)打开网站https://www.ipaddress.com/
查询一下 raw.githubusercontent.com
对应的IP 地址
2、找到
hosts
文件打开访达,
shift+command+G
,输入/etc
进入hosts
所在目录,拷贝出hosts
文件,在文件后面添加以下内容,然后拖进去覆盖
199.232.68.133 raw.githubusercontent.com
WX20200623-101006@2x.png
3、重新执行pod install
命令,终于好了。
网友评论