打開瀏覽器放入該鏈接 http://tool.chinaz.com/dns/?type=1&host=github.com&ip=

image.png
在終端輸入
sudo vi /etc/hosts
提示輸入個(gè)人電腦密碼
此時(shí)輸入E,點(diǎn)擊enter
看到hosts,此時(shí)輸入i,看到命令行下面顯示insert,輸入自己需要修改的host
點(diǎn)擊esc退出編輯
按住shift 和 :,輸入wq保存退出

image.png
(IP不固定 當(dāng)出現(xiàn)問題是及時(shí)修改)
然后重新打開終端 cd到你的項(xiàng)目 中執(zhí)行pod install