Cocoapods更新到1.8版本之后

2022-05-27  本文已影响0人  今晚丿打老虎

查看镜像源列表

$ 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'

上一篇 下一篇

猜你喜欢

热点阅读