美文网首页
cocospods安装第三方库失败(一)

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

作者: 紫荆逸 | 来源:发表于2023-04-20 00:03 被阅读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

    相关文章

      网友评论

          本文标题:cocospods安装第三方库失败(一)

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