[!] /usr/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
Solution:
Open a terminal command line and enter the following command:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer