cocospods安装第三方库失败(一)

2023-04-20  本文已影响0人  紫荆逸

原文章:https://www.jianshu.com/p/d7dfdf6805be

cocospods安装第三方库失败:

n@ndeMac ProjectName % pod install
Analyzing dependencies
Downloading dependencies
Installing Alamofire (5.0.0-rc.2)
Installing AlamofireObjectMapper (6.2.0)
Installing ObjectMapper (3.5.3)

[!] Error installing ObjectMapper
[!] /usr/bin/git clone https://github.com/tristanhimmelman/ObjectMapper.git /var/folders/g6/kzxv36f55v758kdd3lh140bc0000gn/T/d20230420-2193-q6o4v9 --template= --single-branch --depth 1 --branch 3.5.3

Cloning into '/var/folders/g6/kzxv36f55v758kdd3lh140bc0000gn/T/d20230420-2193-q6o4v9'...
fatal: unable to access 'https://github.com/tristanhimmelman/ObjectMapper.git/': Recv failure: Operation timed out

截图:


报错.png

解决办法:git config --global http.postBuffer 2048576000

之后重新pod install

n@ndeMac ProjectName %  git config --global http.postBuffer 2048576000
n@ndeMac ProjectName % pod install 

截图:


解决后.png
上一篇下一篇

猜你喜欢

热点阅读