5

我正在尝试安装我的可可豆荚。
完成所有操作并安装后,我得到了错误:

[!] 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
4

3 回答 3

4

git clone确实是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
于 2016-10-09T06:12:12.983 回答
0

连续尝试 3 次pod setup第一次和第二次失败。第三次它工作。即使第三次失败再次运行它并不断打开网页或流式传输在线视频,这将起作用。我已经测试了两次,一次在 10.12sieraa

于 2017-03-01T05:39:59.040 回答
0

我得到了同样的错误信息。就我而言,我通过更改为 http 来解决它。

git clone https://github.com/CocoaPods/Specs.git master
于 2018-11-02T19:13:18.687 回答