pod setup Cloning into 'master' error: RPC failed; result=56, HTTP code = 200
pod setup Cloning into 'master' error: RPC failed; result=56, HTTP code = 200
我正在尝试设置 pod,但出现以下错误:
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
Cloning into 'master'...
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
network status is ok.
不知道怎么回事
在搜索了 3 天的解决方案后,这是唯一对我有用的解决方案。我刚刚增加了 git 全局配置的缓冲区大小,效果非常好。
- 安装 Cocoapods
- 设置git缓冲区大小:
git config --global http.postBuffer 2M
- 运行 命令:
pod setup
- 大功告成。
唯一对我有用的是强迫 git
使用 git://
而不是 https://
。
将以下内容添加到 ~/.gitconfig
:
[url "git://github.com/"]
insteadOf = https://github.com/
这种方式 pod install
对我也适用。
更新 (2019-07)
这个答案最近被否决了 - 可能不再有效?
更新 (2019-08)
这是一个可行的解决方案。已测试!
我正在尝试设置 pod,但出现以下错误:
[!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --depth=1
Cloning into 'master'...
error: RPC failed; result=56, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
network status is ok.
不知道怎么回事
在搜索了 3 天的解决方案后,这是唯一对我有用的解决方案。我刚刚增加了 git 全局配置的缓冲区大小,效果非常好。
- 安装 Cocoapods
- 设置git缓冲区大小:
git config --global http.postBuffer 2M
- 运行 命令:
pod setup
- 大功告成。
唯一对我有用的是强迫 git
使用 git://
而不是 https://
。
将以下内容添加到 ~/.gitconfig
:
[url "git://github.com/"]
insteadOf = https://github.com/
这种方式 pod install
对我也适用。
更新 (2019-07)
这个答案最近被否决了 - 可能不再有效?
更新 (2019-08)
这是一个可行的解决方案。已测试!