[!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `cocoapods`. You

移除master

rm -rf ~/.cocoapods/repos/master

[!]Unable to add source with url 'https://github.com/CocoaPods/Specs.git' named 'master-1'

You can try adding it manually in '~/.cocoapods/repos/' or via 'pod repo add'


这个错误报的很纠结

解决办法

手动克隆repo的master仓库
* ~/.cocoapods/repos/master删除仓库
* git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
* pod repo update


 

你可能感兴趣的:([!] Unable to add a source with url `https://github.com/CocoaPods/Specs.git` named `cocoapods`. You)