cocoapods导入第三方库提示RPC failed curl 18 transfer

错误提示

error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

导致原因:

curl的postBuffer默认值太小,需要在终端重新配置这个值

解决方案:

  1. 将curl的postBuffer值配置为500M,终端输入命令:
git config --global http.postBuffer 524288000
  1. 查看配置,输入命令:
git config --list
  1. 终端会列出相关配置
credential.helper=osxkeychain
core.excludesfile=/Users/admin/.gitignore_global
difftool.sourcetree.cmd=opendiff "$LOCAL" "$REMOTE"
difftool.sourcetree.path=
mergetool.sourcetree.cmd=/Applications/Sourcetree.app/Contents/Resources/opendiff-w.sh "$LOCAL" "$REMOTE" -ancestor "$BASE" -merge "$MERGED"
mergetool.sourcetree.trustexitcode=true
user.name=bobo
[email protected]
http.postbuffer=524288000
commit.template=/Users/admin/.stCommitMsg

若输出 http.postbuffer=524288000, 就 OK了

你可能感兴趣的:(cocoapods导入第三方库提示RPC failed curl 18 transfer)