查看鏡像源列表
$ pod repo list
修改master鏡像源
$ cd ~/.cocoapods/repos
$ pod repo remove master
gitee鏡像
$ git clone https://gitee.com/mirrors/CocoaPods-Specs.git master (此鏡像更快速,幾m每秒)
把項目podfile里的source換:
source 'https://gitee.com/mirrors/CocoaPods-Specs.git?master'
清華鏡像
$ 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'