![](https://img.haomeiwen.com/i1767433/22f10b1dee98863b.png)
报错尝试解决
1.修改host文件,有些人可以用这个解决,但我尝试了多次还是不行
2.重启电脑 也不行
最终自己尝试修改 git 代理地址 (前提是得有个 vpn )
配置代理
git config --global http.proxy socks5://127.0.0.1:1080
git config --global http.https://github.com.proxy socks5://127.0.0.1:1080
![](https://img.haomeiwen.com/i1767433/bb0472e906f1fef5.png)
![](https://img.haomeiwen.com/i1767433/acb2f213eb390494.png)
后面的1080 端口是不一定的 自己查看自己代理的socks5端口
pod install --no-repo-update
另外这里如果网络还是不稳定 建议两手机热点
最终安装好了 可以重置回去
git config --global --unset http.proxy
git config --global --unset http.https://github.com.proxy
网友评论