Pod设置失败

Leo*_*Leo 6 cocoapods

当我跑pod setup,我得到这个错误:

LeodeMacBook-Pro:repos Leo$ pod setup
Setting up CocoaPods master repo
[!] /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master

Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Run Code Online (Sandbox Code Playgroud)

也许,因为我糟糕的网络?

Leo*_*Leo 10

这样做好吗:

sudo rm -rf ~/.cocoapods/repos/master

git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
Run Code Online (Sandbox Code Playgroud)

比再跑pod setup.