美文网首页
iOS cocopod中的问题终结

iOS cocopod中的问题终结

作者: 飞不越疯人院 | 来源:发表于2020-08-28 14:38 被阅读0次
1. 为cocopod设置代理加速 pod

设置全局代理(端口需要根据自己科学上网软件的端口对应)

git config --global http.proxy 'socks5://127.0.0.1:1086'
git config --global https.proxy 'socks5://127.0.0.1:1086'

只对github.com

git config --global http.https://github.com.proxy socks5://127.0.0.1:1086

取消代理

git config --global --unset http.https://github.com.proxy

取消所有代理

 git config --global --unset http.proxy
2. pod update报错Failed to connect to GitHub to update the CocoaPods/Specs specs repo

使用语句

pod update --verbose --no-repo-update

相关文章

网友评论

      本文标题:iOS cocopod中的问题终结

      本文链接:https://www.haomeiwen.com/subject/cdqirktx.html