cocoapods安装好后repo换源

cocoapods安装好后repo换源

1.pod repo

然后会出现以下内容,如下是我已经换了之后的,而你的URL还是github的

master

网上给出了一个铺天盖地的方法,,使用如下方法换掉repo的源:

pod repo remove master

pod repo add master https://git.coding.net/CocoaPods/Specs.git

pod repo update

然而呀,,,,我试了好多次结果是:

[!] To setup the master specs repo, please run pod setup.

最后继续查找,找到了如下的,方法:

执行:

git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master

过来许久以后,

image

有如图就正常了

最后切记要:

pod repo update

![image](http://upload-images.jianshu.io/upload_images/2292690-32c3d61eb27e5115.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)

显示上图:说明安装成功。

这时候在 pod repo 就是和开始的地方一样了。。

这样之后,,相信我们的pod install 和 pod update 等等都有快速好多了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。