美文网首页
在pod setup时候报错

在pod setup时候报错

作者: 七码_Z | 来源:发表于2018-04-03 10:55 被阅读0次

    在pod setup时候报错

    
    [!] /usr/bin/git clone https://github.com/CocoaPods/Specs.git master --progress
    
    Cloning into 'master'...
    
    remote: Counting objects: 1164953, done.
    
    remote: Compressing objects: 100% (609/609), done.
    
    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 524288000

    用 git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master 替换曾经的 pod setup,成功后会得到以下结果

    Cloning into '/Users/apple/.cocoapods/repos/master'...
    
    remote: Counting objects: 1130093, done.
    
    remote: Compressing objects: 100% (474369/474369), done.
    
    remote: Total 1130093 (delta 563210), reused 1125852 (delta 558973)
    
    Receiving objects: 100% (1130093/1130093), 408.71 MiB | 512.00 KiB/s, done.
    
    Resolving deltas: 100% (563210/563210), done.
    
    Checking out files: 100% (141834/141834), done.
    

    关闭打赏,仅作学习!

    相关文章

      网友评论

          本文标题:在pod setup时候报错

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