美文网首页
cocopods错误记录

cocopods错误记录

作者: 落寒z | 来源:发表于2019-11-12 11:36 被阅读0次

1.出现错误
error: RPC failed; curl 18 transfer closed with outstanding read data remaining

fatal: The remote end hung up unexpectedly

究其原因是因为curl的postBuffer的默认值太小,我们需要调整它的大小,在终端重新配置大小

在这里,笔者把postBuffer的值配置成500M,对笔者来说已经够了。可以根据你需要下载的文件大小,将postBuffer值配置成合适的大小。
git config --global http.postBuffer 524288000
这样已经配置好了,如果你不确定,可以根据以下命令查看postBuffer。
git config --list

2.cocoapods引入第三方库警告消除方法
打开Podfile文件,添加inhibit_all_warnings!,保存并退出

相关文章

网友评论

      本文标题:cocopods错误记录

      本文链接:https://www.haomeiwen.com/subject/xtbfictx.html