iOS大咖说

pod 安装三方库拉不下来

2020-07-17  本文已影响0人  半夏半暖半倾城灬

报错如下:

[!] /usr/local/bin/git clone https://github.com/ibireme/YYKit.git /var/folders/68/m10fkbsj5pj_54_d7_xdw6q80000gn/T/d20200717-27928-6sy3sw --template= --single-branch --depth 1 --branch 1.0.9

Cloning into '/var/folders/68/m10fkbsj5pj_54_d7_xdw6q80000gn/T/d20200717-27928-6sy3sw'...

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

开始试了修改缓存大小(多大都没用):

git config --global http.postBuffer 536870912

git config --global https.postBuffer 536870912

查找资料后得出结论实际原因是国外下载地址更换了,进行如下处理,对pod仓库更新:

cd ~/.cocoapods/repos/master

git pull

拉不下来就继续改大https.postBuffer大小(我改到了20个G)

拉取完成后执行pod install,安装正常(完美)

上一篇 下一篇

猜你喜欢

热点阅读