美文网首页
CocoaPods 1.8.0 以上版本换源的问题

CocoaPods 1.8.0 以上版本换源的问题

作者: 楠楠小胖纸 | 来源:发表于2020-08-04 18:15 被阅读0次

对于旧版的 CocoaPods 可以使用如下方法使用 tuna 的镜像:

pod repo remove master
pod repo add master https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
pod repo update

新版的 CocoaPods 不允许用pod repo add直接添加master库了,但是依然可以:

cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master

最后进入自己的工程,在自己工程的podFile第一行加上:

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

清华大学开源镜像站


本文引用自

https://blog.csdn.net/lea__dongyang/article/details/107244568

相关文章

网友评论

      本文标题:CocoaPods 1.8.0 以上版本换源的问题

      本文链接:https://www.haomeiwen.com/subject/ffswrktx.html