移除master源,使用mirrors.tuna.tsinghu

2021-01-04  本文已影响0人  malgee

提供pod install的速度,常规操作都会切换到国内的镜像

$ cd ~/.cocoapods/repos 
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git tsinghua
添加源
pod repo add cocoapods https://github.com/CocoaPods/Specs.git
pod repo add tsinghua https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git
pod repo remove trunk
pod repo add-cdn trunk https://cdn.cocoapods.org/
上一篇 下一篇

猜你喜欢

热点阅读