$ pod install
Analyzing dependencies
Cloning spec repococoapods
fromhttps://github.com/CocoaPods/Specs.git
[!] Unable to add a source with urlhttps://github.com/CocoaPods/Specs.git
namedcocoapods
.
You can try adding it manually in/Users/fanxianchao/.cocoapods/repos
or viapod repo add
.
- 解决:
更换国内的镜像, 清华的不错
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
然后记得去自己项目podfile里把source换了
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
再重新pod update