我正在尝试安装我的可可豆荚.
做完所有事情并安装后我得到了错误:
做完所有事情并安装后我得到了错误:
[!] 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