Cocoapods Installation

# Update ruby gems.

$ gem update --system

> […]


# Check current ruby gems version.

$ gem -v

> 2.6.10


# Change the gem source to an up-to-date available gem source within GFW.

$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/

> […]


# Check current gem sources and make sure there is merely the updated source.

$ gem sources -l

> https://gems.ruby-china.org


# Toggle the pod binary installing path to /usr/local/bin to get ride of permission forbidden in /usr/bin directory.

$ sudo gem install -n /usr/local/bin cocoapods

> […]


# Go to [~/.cocoapods/repos] and type following command to setup cocoapods instead of using [pod setup].

$ git clone https://git.coding.net/hging/Specs.git master

> [Just wait a second it'll start to count Files to be downloaded…Your'll see percentages moving on as it starts out..]


# Go to your project directory which gets pod files involved.

$ pod install

> […]



These are experimental summarising workflows which partially reference to following passages:

解決CocoaPods慢的小技巧

RubyGems 鏡像

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

推薦閱讀更多精彩內(nèi)容