经常会遇到 pod install 卡在那里不动了,
可以使用 pod install --verbose 查看一下,是不是下载 github的源时卡住了,
如果是这样的话,没什么好办法,只能找梯子,改一下git的代理
将git 全局改到你的梯子的sock 端口
git config --global http.proxy http://127.0.0.1:7890
git config --global https.proxy https://127.0.0.1:7890
使用结束后,再改回来
git config --global --unset https.proxy
git config --global --unset http.proxy
如果还不行的话, 可以采用: https://www.jianshu.com/u/b098da1486f0
中的方案, 在终端上加代理
export https_proxy=http://127.0.0.1:7890 http_proxy=http://127.0.0.1:7890 all_proxy=socks5://127.0.0.1:7890
用完改回
unset https_proxy unset http_proxy unset all_proxy