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

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

git config —list

終端會列出相關配置

credential.helper=osxkeychain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
user.name=ZBC-CWS
http.postbuffer=524288000
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
core.ignorecase=true
core.precomposeunicode=true
remote.origin.url=https://github.com/ZBC-CWS/cocoapodsTest.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

查看其中的http.postBuffer對應的值是否是設置的值,如果是,設置成功,否則,設置失敗

3、重新執行pod相關命令,解決。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM