xcode – RPC失败; curl 56 SSLRead()返回错误-9806 MiB / s

前端之家收集整理的这篇文章主要介绍了xcode – RPC失败; curl 56 SSLRead()返回错误-9806 MiB / s前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试安装我的可可豆荚.
做完所有事情并安装后我得到了错误

[!] Unable to add a source with url git@github.com:CocoaPods/Specs.git named master-1

并修复我尝试的错误

cd ~/.cocoapods/repos
 git clone https://github.com/CocoaPods/Specs.git master

然后我得到这个错误,我不知道如何处理:

remote: Counting objects: 854549,done.
remote: Compressing objects: 100% (3453/3453),done.
error: RPC Failed; curl 56 SSLRead() return error -9806 MiB/s   
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack Failed

解决方法

git克隆确实是 issue 4293推荐的.

但是如果克隆因“RPC Failed; result = 56”错误消息而失败,请检查您的git缓冲区:

git config --global http.postBuffer 2M

然后再试一次你的git clone.

如果没有,请调查:

GIT_CURL_VERBOSE=1 git clone https://github.com/CocoaPods/Specs.git

最后,如果https不想合作,请尝试使用ssh url:

cd  ~/.cocoapods/repos 
git clone git@github.com:CocoaPods/Specs.git

猜你在找的Xcode相关文章