美文网首页
pod install安装出现curl: (7) Failed

pod install安装出现curl: (7) Failed

作者: xmb | 来源:发表于2020-06-23 10:09 被阅读0次

参考: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 地址

WX20200623-101034@2x.png
2、找到hosts文件
打开访达,shift+command+G,输入/etc进入hosts所在目录,拷贝出hosts文件,在文件后面添加以下内容,然后拖进去覆盖
199.232.68.133 raw.githubusercontent.com
WX20200623-101006@2x.png

3、重新执行pod install命令,终于好了。

image.png

相关文章

网友评论

      本文标题:pod install安装出现curl: (7) Failed

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