安装CocoaPods报"RPC failed; curl 18 transfer closed with outstanding read data remaining"

解决方法:

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

你可能感兴趣的:(安装CocoaPods报"RPC failed; curl 18 transfer closed with outstanding read data remaining")