美文网首页iOS Developer
Cocoapods Installation

Cocoapods Installation

作者: R0b1n_L33 | 来源:发表于2017-02-14 20:05 被阅读93次

    # 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 镜像

    相关文章

      网友评论

        本文标题:Cocoapods Installation

        本文链接:https://www.haomeiwen.com/subject/vuiicttx.html