[!] Unable to add a source with url git@github.com:CocoaPods/Specs.git
named master-1
. You can try adding it manually in ~/.cocoapods/repos
You may need to reset your command line tools:
sudo xcode-select -r
I was receiving the same error message. Then I noticed, that the wrong Xcode environment was selected (it pointed to an old version which I deleted in the meantime). The command above resets it to the default command line path.
Alternatively you might have no command line tools installed. In that case, download them from the Apple site and install them.