Cocoapods 搜索不到最新版本的库解决办法

重装cocoapods 走pod setup 会出问题

走pod setup 会直接去拉https://github.com/CocoaPods/Specs.git上的内容,哪怕是设置了 git config --list 中 http.postbuffer 的大小值,仍有可能出现问题。

若出现了 : error: RPC failed; curl 18 transfer closed with outstanding read data remaining

原因可能是 : git项目太大,连接途中断掉,但仍有未处理的内容。

解决办法:

0、cd ~/.cocoapods/repos

1、 sudo rm -fr ~/.cocoapods/repos/master

// -- depth 1 浅层
2、git clone https://github.com/CocoaPods/Specs.git master --depth 1 --progress

然后就可以直接使用了,不用再去走pod setup
当然前提是你前面的步骤没有问题。

搜索到了SDAutoLayout最新版本!

你可能感兴趣的:(Cocoapods 搜索不到最新版本的库解决办法)