当前位置:   article > 正文

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

cocoapod curl: (18) transfer closed with 7215405 bytes remaining to read
错误提示:
  1. error: RPC failed; curl 18 transfer closed with outstanding read data remaining
  2. fatal: The remote end hung up unexpectedly
  3. fatal: early EOF
  4. fatal: index-pack failed
导致原因:
curl的postBuffer默认值太小,需要在终端重新配置这个值

解决方案:

1、将curl的postBuffer值配置为500M,具体值看项目需求,配置成功不会有提示,配置失败会有提示,终端输入命令:

git config —global http.postBuffer 524288000

2、查看配置,输入命令:

git config —list

终端会列出相关配置

  1. credential.helper=osxkeychain
  2. filter.lfs.clean=git-lfs clean -- %f
  3. filter.lfs.smudge=git-lfs smudge -- %f
  4. filter.lfs.process=git-lfs filter-process
  5. filter.lfs.required=true
  6. user.name=ZBC-CWS
  7. http.postbuffer=524288000
  8. core.repositoryformatversion=0
  9. core.filemode=true
  10. core.bare=false
  11. core.logallrefupdates=true
  12. core.ignorecase=true
  13. core.precomposeunicode=true
  14. remote.origin.url=https://github.com/ZBC-CWS/cocoapodsTest.git
  15. remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

查看其中的http.postBuffer对应的值是否是设置的值,如果是,设置成功,否则,设置失败

3、重新执行pod相关命令,解决。

转载于:https://www.cnblogs.com/zhanbaocheng/p/7503185.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/空白诗007/article/detail/762636
推荐阅读
相关标签
  

闽ICP备14008679号