0.更新pod
sudo gem install -n /usr/local/bin cocoapods --pre复制代码
1.pod setup
执行不成功
2.所以只能去下载一个仓库下来 放到根目录 ~/.cocoapods/repos/master
再执行命令更新一下本地的仓库:
pod repo updatepod repo update --verbose复制代码
如果出现以下错误 [!] Unable to find a pod with name, author, summary, or description matching 'mj'
rm ~/Library/Caches/CocoaPods/search_index.json 复制代码
重装Git
$ brew remove git$ brew remove curl$ brew install openssl$ brew install --with-openssl curl$ brew install --with-brewed-curl --with-brewed-openssl git复制代码