美文网首页
cocopods. 最新的安装问题

cocopods. 最新的安装问题

作者: 河马咕嘟 | 来源:发表于2020-04-24 02:59 被阅读0次

问题 一,
Failed to connect to 127.0.0.1 port 10000: Connection refused
这个问题困扰很久,一定是代理的问题,才会pod search 可以,但是 install 和 update 不行

执行终端以下代码 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy

然后再看 环境代理是否存在
git config --global --list| grep -I proxy
我的是这样的 :
http.https://github.com.proxy=socks5://XXXXXXXXXXXX
然后我执行了 :git config --global --unset http.https://github.com.prox
最后再查一下,什么都没有。
这时候你就可以去 update ,install ,问题完美解决!

这种问题一般出现在我们经常电脑上装VPN这些导致更新 pods 这些 访问被拒绝!

问题 二, 就是最新的的系统 setup 很快就完了,但是无法搜索,无法用。这是最大的问题 。

git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git ~/.cocoapods/repos/trunk

也可以这样操作 :
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/trunk

最后推荐一个最新的的文章 ,写的不错 关于这个问题的
https://www.jianshu.com/p/f43b5964f582

相关文章

网友评论

      本文标题:cocopods. 最新的安装问题

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