pod install 、pod update 出现[!] Er
2021-03-18 本文已影响0人
这个姑凉儿
问题描述
![](https://img.haomeiwen.com/i2615899/bedec6d34842a146.png)
试了各种方法都没有效果
只有下边这个方法解决了该问题
需要在finder 前往文件夹 打开 etc/hosts 文件,然后复制到本地
打开浏览器放入该链接
http://tool.chinaz.com/dns/?type=1&host=github.com&ip=
![](https://img.haomeiwen.com/i2615899/71b091679b432dfb.jpeg)
然后复制到 hosts文件里 后面 加上 github.com 如下
![](https://img.haomeiwen.com/i2615899/d52d169f2c9e99b6.jpeg)
保存 然后 复制文件到 etc/hosts 覆盖掉
重新打开终端 cd到当前目录 执行 pod install