$ pod install
Analyzing dependencies
Cloning spec repococoapodsfromhttps://github.com/CocoaPods/Specs.git
[!] Unable to add a source with urlhttps://github.com/CocoaPods/Specs.gitnamedcocoapods.
You can try adding it manually in/Users/fanxianchao/.cocoapods/reposor viapod repo add.
- 解決:
更換國內(nèi)的鏡像, 清華的不錯(cuò)
$ cd ~/.cocoapods/repos
$ pod repo remove master
$ git clone https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git master
然后記得去自己項(xiàng)目podfile里把source換了
source 'https://mirrors.tuna.tsinghua.edu.cn/git/CocoaPods/Specs.git'
再重新pod update