pod install 报错 出现 “Failed to con
2020-06-06 本文已影响0人
夏至_未至_
创建新项目 vim podfile文件后 执行 pod install 报如下错误

听朋友说 需要在finder 前往文件夹 打开 etc/hosts 文件,然后复制到本地
找到 http://tool.chinaz.com/dns/?type=1&host=github.com&ip= 文件里 最新的一个IP 然后赋值到 hosts文件里 后面 加上 github.com 如下

保存 然后 复制文件到 etc/hosts 覆盖掉 重新打开终端 cd到当前目录 执行 pod install completed
