1
首先去github上下載.zip文件:https://github.com/CocoaPods/Specs
2
將下載的 master.zip 解壓出來(lái)嫁赏,解壓后的文件目錄:~/.cocoapods/repos
下的master文件夾 沒(méi)有master得話(huà) 就新建一個(gè)
3
cd ~/.cocoapods/repos/master 目錄 git init 再 git remote add origin https://github.com/CocoaPods/Specs