iOS CocoaPods setup stucking

iOS安裝CocoaPods步驟:git


CocoaPods官網:https://cocoapods.org/

$ sudo gem install cocoapods 一鍵安裝
cocoaPods依賴Ruby,Gem, 檢查下這兩個是否安裝好
$ ruby -v
$ gem -v
都顯示版本說明安裝成功
使用前須要初始化pod $ pod setup
此步驟遇到stucking狀況,進度一直卡在下載mater不動
解決方法:github

git clone github.com/CocoaPods/S… ~/.cocoapods/repos/master
pod setupruby


主要是下載cocoapods的庫出現問題,能夠手動下載也能夠命令直接下載拷貝,以後再pod setup便可

uninstall cocoapods


First, determine which version(s) of Cocoapods you have installed by running this in Terminal:

gem list --local | grep cocoapodsthis

You see output similar to this:code

cocoapods (0.27.1, 0.20.2) cocoapods-core (0.27.1, 0.20.2) cocoapods-downloader (0.2.0, 0.1.2)ip

Here, I have two versions of Cocoapods installed.ci

To completely remove, issue the following commands:rem

gem uninstall cocoapods gem uninstall cocoapods-core gem uninstall cocoapods-downloaderget

If you have multiple versions installed, like I have, it will prompt you to choice a specific version or all. If you want to uninstall a specific version you can also use the -v switch as follows:it

gem uninstall cocoapods -v 0.20.2 Running gem list --local | grep cocoapods again will confirm that Cocoapods has been removed.

相關文章
相關標籤/搜索