[iOS]pod setup很慢的解决方法

pod setup的本质

本质就是将https://github.com/CocoaPods/Specs.git的代码下载到
~/.cocoapods/repos/master

方法一 git clone

直接clone

git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master

这个速度可能也是很慢的,如果有代理也许可以加速。

方法二 下载zip包

https://github.com/CocoaPods/Specs/archive/master.zip
解压缩到~/.cocoapods/repos/master

方法三

复制之前可以的master到 ~/.cocoapods/repos/master
这种情况可能无法保证是最新的,一般都可以用。

下载完成后,执行 pod setup

猜你喜欢

转载自blog.csdn.net/annkie/article/details/82781975