[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `master`. You can try adding it manually in `~/.cocoapods/repos` or via `pod repo add`. I tried the suggested method pod repo add master https://github.com/CocoaPods/Specs.git But still wrong.. [!] /usr/bin/git clone http://git.oschina.net/akuandev/Specs.git master xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Last workaround: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developers