在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.
关闭打赏,仅作学习!