cocoapods 镜像

2020-06-29  本文已影响0人  Sunooo

安装cocoapods之后,由于直接从github下载速度太慢,很多国内镜像年久失修,已经不好用了。找到一个可以用的镜像

https://mirror.tuna.tsinghua.edu.cn/help/CocoaPods/

新版的cocoapods直接在命令行输入以下代码,从此以后速度就快多了。

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
上一篇 下一篇

猜你喜欢

热点阅读