原文章:http://www.reibang.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
截圖:
解決辦法:git config --global http.postBuffer 2048576000
之后重新pod install
n@ndeMac ProjectName % git config --global http.postBuffer 2048576000
n@ndeMac ProjectName % pod install
截圖: