1
首先去github上下载.zip文件:https://github.com/CocoaPods/Specs
2
将下载的 master.zip 解压出来,解压后的文件目录:~/.cocoapods/repos
下的master文件夹 没有master得话 就新建一个
3
cd ~/.cocoapods/repos/master 目录 git init 再 git remote add origin https://github.com/CocoaPods/Specs
首先去github上下载.zip文件:https://github.com/CocoaPods/Specs
将下载的 master.zip 解压出来,解压后的文件目录:~/.cocoapods/repos
下的master文件夹 没有master得话 就新建一个
cd ~/.cocoapods/repos/master 目录 git init 再 git remote add origin https://github.com/CocoaPods/Specs