xcode RPC 失败;curl 56 SSLRead() 返回错误 -9806 MiB/s
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39939055/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
RPC failed; curl 56 SSLRead() return error -9806 MiB/s
提问by alibabaei12
I am trying to install my cocoa pods.
After doing everything and installing it i got the error :
我正在尝试安装我的可可豆荚。
完成所有操作并安装后,我收到错误消息:
[!] Unable to add a source with url [email protected]:CocoaPods/Specs.git named master-1
And to fix that error I tried:
为了解决这个错误,我试过:
cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs.git master
Then I get this error which I don't know how to deal with:
然后我收到这个错误,我不知道如何处理:
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
回答by VonC
The git clone
is indeed what issue 4293recommends.
这git clone
确实是issue 4293推荐的。
But if the clone fails with a "RPC failed; result=56
" error message, check your git buffer:
但是如果克隆失败并显示“ RPC failed; result=56
”错误消息,请检查您的 git 缓冲区:
git config --global http.postBuffer 2M
Then try again your git clone
.
然后再试一次你的git clone
.
If not, investigate with:
如果没有,请调查:
GIT_CURL_VERBOSE=1 git clone https://github.com/CocoaPods/Specs.git
Finally, if https does not want to cooperate, try the ssh url:
最后,如果https不想配合,试试ssh url:
cd ~/.cocoapods/repos
git clone [email protected]:CocoaPods/Specs.git
回答by Bibin KJ
Continuously try 3 times pod setupfirst and second time it fails. third time it works. Even if the third time fails run again it and continuously open a webpage or stream online videos, this will works. i have tested two times, one in 10.12sieraa
第一次连续尝试 3 次pod 设置,第二次失败。第三次它起作用了。即使第三次失败再次运行它并不断打开网页或流式传输在线视频,这也会起作用。我已经测试了两次,一次是 10.12sieraa
回答by Sara CK
I got the same error message. In my case I resolved it by changing to http.
我收到了同样的错误信息。就我而言,我通过更改为 http 来解决它。
git clone https://github.com/CocoaPods/Specs.git master