1.pod repo
然后會出現以下內容,如下是我已經換了之后的,而你的URL還是github的
master
- Type: git (master)
- URL: https://git.coding.net/CocoaPods/Specs.git
- Path: /Users/Mingo/.cocoapods/repos/master
網上給出了一個鋪天蓋地的方法,,使用如下方法換掉repo的源:
pod repo remove master
pod repo add master https://git.coding.net/CocoaPods/Specs.git
pod repo update
然而呀,,,,我試了好多次結果是:
[!] To setup the master specs repo, please run pod setup
.
最后繼續查找,找到了如下的,方法:
執行:
git clone https://git.coding.net/CocoaPods/Specs.git ~/.cocoapods/repos/master
過來許久以后,
有如圖就正常了
最后切記要:
pod repo update
顯示上圖:說明安裝成功。
這時候在 pod repo 就是和開始的地方一樣了。。
這樣之后,,相信我們的pod install 和 pod update 等等都有快速好多了。