Cocoapods更新到1.8版本之后

查看镜像源列表

$ pod repo list

修改master镜像源,将之前镜像源删除

$ cd ~/.cocoapods/repos

$ pod repo remove master

github镜像源

$ git clone https://github.com/CocoaPods/Specs.git

项目podfile里:

source 'https://github.com/CocoaPods/Specs.git'


github下载很慢,所以要更换国内镜像

更换gitee镜像

$ git clone https://gitee.com/mirrors/CocoaPods-Specs.git 

把项目podfile里的source换:

source 'https://gitee.com/mirrors/CocoaPods-Specs.git'

更换清华镜像

$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

把项目podfile里的source换:

source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'

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

推荐阅读更多精彩内容