美文网首页iOS收藏
pod install 、pod update 出现[!] E

pod install 、pod update 出现[!] E

作者: Y_3c23 | 来源:发表于2021-03-13 11:23 被阅读0次

问题描述

[!] Error installing Masonry

[!] /usr/bin/git clone https://github.com/cloudkite/Masonry.git /var/folders/0f/n8wwqx_166588q2rhp__r2wc0000gn/T/d20210313-14531-h9zipp --template= --single-branch --depth 1 --branch v1.1.0

Cloning into '/var/folders/0f/n8wwqx_166588q2rhp__r2wc0000gn/T/d20210313-14531-h9zipp'...

fatal: unable to access 'https://github.com/cloudkite/Masonry.git/': Failed to connect to github.com port 443: Operation timed out

试了各种方法都没有效果

只有下边这个方法解决了该问题

需要在finder 前往文件夹 打开 /etc/hosts 文件,然后复制到本地

打开浏览器放入该链接

http://tool.chinaz.com/dns/?type=1&host=github.com&ip=

aaaaaa

然后复制到 hosts文件里 后面 加上 github.com 如下

bbbbbb

保存 然后 复制文件到 etc/hosts 覆盖掉 

重新打开终端 cd到当前目录 执行 pod install 

 重新打开终端 cd到当前目录 执行 pod install

 重新打开终端 cd到当前目录 执行 pod install

相关文章

网友评论

    本文标题:pod install 、pod update 出现[!] E

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