[!] 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
Meet the same error and I have solved it by :
1. Open your terminal
2. Go to the directory : cd /User/YOUR_NAME/.cocoapods/repos/
3. remove the master file : rm -rf master
4. Clone the CocoaPods : git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
Note. I add the target path ~/.cocoapods/repos/master
to avoid the mistake that your current file path is not ~/.cocoapods/repos/master
5. Run the setup : pod setup