解决方法:
1.从新的镜像下载(这里是清华大学的源,速度飞快)
cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
2.修改 master下的.git/config git地址为 https://github.com/CocoaPods/Specs
3.执行安装
pod setup
解决方法:
1.从新的镜像下载(这里是清华大学的源,速度飞快)
cd ~/.cocoapods/repos
pod repo remove master
git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
2.修改 master下的.git/config git地址为 https://github.com/CocoaPods/Specs
3.执行安装
pod setup