cocoapods之pod install报错 fatal: unable to access 'https://github.com/rs/SDWebImag

209 阅读1分钟

pod install报错

[!] Error installing SDWebImage

[!] /usr/bin/git clone github.com/rs/SDWebIma… /var/folders/sp/877kfvm127j515_z5vltctpm0000gn/T/d20250307-67849-1kws5t --template= --single-branch --depth 1 --branch 4.3.3

Cloning into '/var/folders/sp/877kfvm127j515_z5vltctpm0000gn/T/d20250307-67849-1kws5t'...

fatal: unable to access 'github.com/rs/SDWebIma…': Empty reply from server

解决办法:

查看当前代理

git config --global --get http.proxy

git config --global --get https.proxy

然后,执行

git config --global --unset http.proxy

git config --global --unset https.proxy

再次,执行

pod install

报错:

Cloning into '/var/folders/sp/877kfvm127j515_z5vltctpm0000gn/T/d20250307-67963-r705xl'...

error: RPC failed; curl 52 Empty reply from server

fatal: expected flush after ref listing

解决办法:

git config --global http.postBuffer 124428800

git config --global http.lowSpeedLimit 0

git config --global http.lowSpeedTime 999999

接续执行

pod install

就可以了: