[!] 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
I had the same problem , actually the problem was that command line was not able to find a path to my Xcode. Therefore the simplest solution that i found was to give a suitable location of xcode.
For it:
thats it. I hope that works for you. All the best