cocoapods安裝好后repo換源


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 等等都有快速好多了。

 

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM