美文网首页
安装RVM,cocoapods过程及参考

安装RVM,cocoapods过程及参考

作者: 舟_e9ce | 来源:发表于2020-11-20 11:20 被阅读0次

    参考:
    https://www.jianshu.com/p/f43b5964f582

    安装rvm前安装gpg
    安装gpg

    brew install gnupg
    

    安装过程

    ==> Downloading https://homebrew.bintray.com/bottles/adns-1.6.0.big_sur.bottle.t
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/8801de53f606e09e09a2b
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.big_sur.bottle
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a025e143fe3f5f7e24a93
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/gmp-6.2.1.big_sur.bottle.ta
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6a44705536f25c4b9f854
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/bdw-gc-8.0.4.big_sur.bottle
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a723d37d742531df8cf10
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libffi-3.3.big_sur.bottle.t
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_2.big_sur.bot
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/b5dba5a59ae66f42b0129
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libunistring-0.9.10.big_sur
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5d336bd939f678b48dc1c
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2_3.big_sur
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0040b6ebe07f60549800b
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/readline-8.0.4.big_sur.bott
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/0a6b12ddbee78cf31dfd7
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/guile-3.0.4.big_sur.bottle.
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/fb9d84289c4bcb60f7e45
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libidn2-2.3.0.big_sur.bottl
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/65523d89d65893a402f9f
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libtasn1-4.16.0.big_sur.bot
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/nettle-3.6.big_sur.bottle.t
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/5119f665e058b08045462
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/p11-kit-0.23.21.big_sur.bot
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/88b116742f3623b5b7267
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/openssl%401.1-1.1.1h.big_su
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/81fe98e819f1d3554d98c
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libevent-2.1.12.big_sur.bot
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/45758b448d82b82b6bea5
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/unbound-1.12.0.big_sur.bott
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/a177141e80c7018a98e7d
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/gnutls-3.6.15.big_sur.bottl
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6f523e8ce74c567d17a4a
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libgpg-error-1.39.big_sur.b
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/d01d066dbc2b58d856f14
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libassuan-2.5.4.big_sur.bot
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libgcrypt-1.8.7.big_sur.bot
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/04469a9f2058b744d182c
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libksba-1.4.0.big_sur.bottl
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/libusb-1.0.23.big_sur.bottl
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/npth-1.6.big_sur.bottle.tar
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/pinentry-1.1.0_1.big_sur.bo
    ######################################################################## 100.0%
    ==> Downloading https://homebrew.bintray.com/bottles/gnupg-2.2.23.big_sur.bottle
    ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/309759a01007c68671d78
    ######################################################################## 100.0%
    ==> Installing dependencies for gnupg: adns, gettext, gmp, bdw-gc, libffi, libtool, libunistring, pkg-config, readline, guile, libidn2, libtasn1, nettle, p11-kit, openssl@1.1, libevent, unbound, gnutls, libgpg-error, libassuan, libgcrypt, libksba, libusb, npth and pinentry
    ==> Installing gnupg dependency: adns
    ==> Pouring adns-1.6.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/adns/1.6.0: 14 files, 792.3KB
    ==> Installing gnupg dependency: gettext
    ==> Pouring gettext-0.21.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/gettext/0.21: 1,953 files, 19.8MB
    ==> Installing gnupg dependency: gmp
    ==> Pouring gmp-6.2.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/gmp/6.2.1: 21 files, 3.3MB
    ==> Installing gnupg dependency: bdw-gc
    ==> Pouring bdw-gc-8.0.4.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/bdw-gc/8.0.4: 69 files, 1.6MB
    ==> Installing gnupg dependency: libffi
    ==> Pouring libffi-3.3.big_sur.bottle.tar.gz
    ==> Caveats
    libffi is keg-only, which means it was not symlinked into /usr/local,
    because macOS already provides this software and installing another version in
    parallel can cause all kinds of trouble.
    
    For compilers to find libffi you may need to set:
      export LDFLAGS="-L/usr/local/opt/libffi/lib"
      export CPPFLAGS="-I/usr/local/opt/libffi/include"
    
    ==> Summary
    🍺  /usr/local/Cellar/libffi/3.3: 17 files, 540.2KB
    ==> Installing gnupg dependency: libtool
    ==> Pouring libtool-2.4.6_2.big_sur.bottle.tar.gz
    ==> Caveats
    In order to prevent conflicts with Apple's own libtool we have prepended a "g"
    so, you have instead: glibtool and glibtoolize.
    ==> Summary
    🍺  /usr/local/Cellar/libtool/2.4.6_2: 71 files, 3.7MB
    ==> Installing gnupg dependency: libunistring
    ==> Pouring libunistring-0.9.10.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libunistring/0.9.10: 55 files, 4.5MB
    ==> Installing gnupg dependency: pkg-config
    ==> Pouring pkg-config-0.29.2_3.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 656.6KB
    ==> Installing gnupg dependency: readline
    ==> Pouring readline-8.0.4.big_sur.bottle.tar.gz
    ==> Caveats
    readline is keg-only, which means it was not symlinked into /usr/local,
    because macOS provides BSD libedit.
    
    For compilers to find readline you may need to set:
      export LDFLAGS="-L/usr/local/opt/readline/lib"
      export CPPFLAGS="-I/usr/local/opt/readline/include"
    
    For pkg-config to find readline you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
    
    ==> Summary
    🍺  /usr/local/Cellar/readline/8.0.4: 48 files, 1.6MB
    ==> Installing gnupg dependency: guile
    ==> Pouring guile-3.0.4.big_sur.bottle.2.tar.gz
    ==> Caveats
    Guile libraries can now be installed here:
        Source files: /usr/local/share/guile/site/3.0
      Compiled files: /usr/local/lib/guile/3.0/site-ccache
          Extensions: /usr/local/lib/guile/3.0/extensions
    
    Add the following to your .bashrc or equivalent:
      export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
      export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
      export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
    ==> Summary
    🍺  /usr/local/Cellar/guile/3.0.4: 831 files, 56.6MB
    ==> Installing gnupg dependency: libidn2
    ==> Pouring libidn2-2.3.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libidn2/2.3.0: 72 files, 808.2KB
    ==> Installing gnupg dependency: libtasn1
    ==> Pouring libtasn1-4.16.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libtasn1/4.16.0: 60 files, 535.7KB
    ==> Installing gnupg dependency: nettle
    ==> Pouring nettle-3.6.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/nettle/3.6: 88 files, 2.6MB
    ==> Installing gnupg dependency: p11-kit
    ==> Pouring p11-kit-0.23.21.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/p11-kit/0.23.21: 63 files, 3MB
    ==> Installing gnupg dependency: openssl@1.1
    ==> Pouring openssl@1.1-1.1.1h.big_sur.bottle.tar.gz
    ==> Caveats
    A CA file has been bootstrapped using certificates from the system
    keychain. To add additional certificates, place .pem files in
      /usr/local/etc/openssl@1.1/certs
    
    and run
      /usr/local/opt/openssl@1.1/bin/c_rehash
    
    openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
    because macOS provides LibreSSL.
    
    If you need to have openssl@1.1 first in your PATH run:
      echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
    
    For compilers to find openssl@1.1 you may need to set:
      export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
      export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
    
    For pkg-config to find openssl@1.1 you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
    
    ==> Summary
    🍺  /usr/local/Cellar/openssl@1.1/1.1.1h: 8,067 files, 18.5MB
    ==> Installing gnupg dependency: libevent
    ==> Pouring libevent-2.1.12.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libevent/2.1.12: 57 files, 2MB
    ==> Installing gnupg dependency: unbound
    ==> Pouring unbound-1.12.0.big_sur.bottle.tar.gz
    ==> Caveats
    To have launchd start unbound now and restart at startup:
      sudo brew services start unbound
    ==> Summary
    🍺  /usr/local/Cellar/unbound/1.12.0: 57 files, 5.4MB
    ==> Installing gnupg dependency: gnutls
    ==> Pouring gnutls-3.6.15.big_sur.bottle.tar.gz
    ==> Caveats
    If you are going to use the Guile bindings you will need to add the following
    to your .bashrc or equivalent in order for Guile to find the TLS certificates
    database:
      export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
    ==> Summary
    🍺  /usr/local/Cellar/gnutls/3.6.15: 1,250 files, 11MB
    ==> Installing gnupg dependency: libgpg-error
    ==> Pouring libgpg-error-1.39.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libgpg-error/1.39: 27 files, 1MB
    ==> Installing gnupg dependency: libassuan
    ==> Pouring libassuan-2.5.4.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libassuan/2.5.4: 17 files, 503.4KB
    ==> Installing gnupg dependency: libgcrypt
    ==> Pouring libgcrypt-1.8.7.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libgcrypt/1.8.7: 23 files, 2.8MB
    ==> Installing gnupg dependency: libksba
    ==> Pouring libksba-1.4.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libksba/1.4.0: 18 files, 490.9KB
    ==> Installing gnupg dependency: libusb
    ==> Pouring libusb-1.0.23.big_sur.bottle.1.tar.gz
    🍺  /usr/local/Cellar/libusb/1.0.23: 26 files, 498.3KB
    ==> Installing gnupg dependency: npth
    ==> Pouring npth-1.6.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/npth/1.6: 12 files, 133.9KB
    ==> Installing gnupg dependency: pinentry
    ==> Pouring pinentry-1.1.0_1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/pinentry/1.1.0_1: 12 files, 329.2KB
    ==> Installing gnupg
    ==> Pouring gnupg-2.2.23.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/gnupg/2.2.23: 140 files, 12MB
    ==> Caveats
    ==> libffi
    libffi is keg-only, which means it was not symlinked into /usr/local,
    because macOS already provides this software and installing another version in
    parallel can cause all kinds of trouble.
    
    For compilers to find libffi you may need to set:
      export LDFLAGS="-L/usr/local/opt/libffi/lib"
      export CPPFLAGS="-I/usr/local/opt/libffi/include"
    
    For pkg-config to find libffi you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
    
    ==> libtool
    In order to prevent conflicts with Apple's own libtool we have prepended a "g"
    so, you have instead: glibtool and glibtoolize.
    ==> readline
    readline is keg-only, which means it was not symlinked into /usr/local,
    because macOS provides BSD libedit.
    
    For compilers to find readline you may need to set:
      export LDFLAGS="-L/usr/local/opt/readline/lib"
      export CPPFLAGS="-I/usr/local/opt/readline/include"
    
    For pkg-config to find readline you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
    
    ==> guile
    Guile libraries can now be installed here:
        Source files: /usr/local/share/guile/site/3.0
      Compiled files: /usr/local/lib/guile/3.0/site-ccache
          Extensions: /usr/local/lib/guile/3.0/extensions
    
    Add the following to your .bashrc or equivalent:
      export GUILE_LOAD_PATH="/usr/local/share/guile/site/3.0"
      export GUILE_LOAD_COMPILED_PATH="/usr/local/lib/guile/3.0/site-ccache"
      export GUILE_SYSTEM_EXTENSIONS_PATH="/usr/local/lib/guile/3.0/extensions"
    ==> openssl@1.1
    A CA file has been bootstrapped using certificates from the system
    keychain. To add additional certificates, place .pem files in
      /usr/local/etc/openssl@1.1/certs
    
    and run
      /usr/local/opt/openssl@1.1/bin/c_rehash
    
    openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
    because macOS provides LibreSSL.
    
    If you need to have openssl@1.1 first in your PATH run:
      echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
    
    For compilers to find openssl@1.1 you may need to set:
      export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
      export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
    
    For pkg-config to find openssl@1.1 you may need to set:
      export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"
    
    ==> unbound
    To have launchd start unbound now and restart at startup:
      sudo brew services start unbound
    ==> gnutls
    If you are going to use the Guile bindings you will need to add the following
    to your .bashrc or equivalent in order for Guile to find the TLS certificates
    database:
      export GUILE_TLS_CERTIFICATE_DIRECTORY=/usr/local/etc/gnutls/
    

    利用七牛安装rvm

    \curl -sSL http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/rvm-installer.txt | bash -s stable
    

    提示错误

    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.10.tar.gz
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.10.tar.gz.asc
    gpg: 签名建立于 四  3/26 05:58:42 2020 CST
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 无法检查签名:No public key
    GPG signature verification failed for '/Users/lk/.rvm/archives/rvm-1.29.10.tgz' - 'http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.10.tar.gz.asc'! Try to install GPG v2 and then fetch the public key:
    
        gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    
    or if it fails:
    
        command curl -sSL https://rvm.io/mpapis.asc | gpg --import -
        command curl -sSL https://rvm.io/pkuczynski.asc | gpg --import -
    
    In case of further problems with validation please refer to https://rvm.io/rvm/security
    

    这句话很重要 需要执行一次

    gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    

    执行完成后提示

    gpg: 密钥 105BD0E739499BDB:公钥 “Piotr Kuczynski <piotr.kuczynski@gmail.com>” 已导入
    gpg: 密钥 3804BB82D39DC0E3:“Michal Papis (RVM signing) <mpapis@gmail.com>” 未改变
    gpg: 处理的总数:2
    gpg:               已导入:1
    gpg:              未改变:1
    

    再次执行

    \curl -sSL http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/rvm-installer.txt | bash -s stable
    

    安装成功

    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.10.tar.gz
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.10.tar.gz.asc
    gpg: 签名建立于 四  3/26 05:58:42 2020 CST
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 完好的签名,来自于 “Piotr Kuczynski <piotr.kuczynski@gmail.com>” [未知]
    gpg: 警告:此密钥未被受信任签名认证!
    gpg:       没有证据表明此签名属于其声称的所有者。
    主密钥指纹: 7D2B AF1C F37B 13E2 069D  6956 105B D0E7 3949 9BDB
    GPG verified '/Users/lk/.rvm/archives/rvm-1.29.10.tgz'
    Installing RVM to /Users/lk/.rvm/
        Adding rvm PATH line to /Users/lk/.profile /Users/lk/.mkshrc /Users/lk/.bashrc /Users/lk/.zshrc.
        Adding rvm loading line to /Users/lk/.profile /Users/lk/.bash_profile /Users/lk/.zlogin.
    Installation of RVM in /Users/lk/.rvm/ is almost complete:
    
      * To start using RVM you need to run `source /Users/lk/.rvm/scripts/rvm`
        in all your open shell windows, in rare cases you need to reopen all shell windows.
    Thanks for installing RVM 🙏
    Please consider donating to our open collective to help us maintain RVM.
    
    👉  Donate: https://opencollective.com/rvm/donate
    

    在执行开始使用rvm的命令

    source /Users/lk/.rvm/scripts/rvm
    

    执行 rvm -v

    rvm 1.29.10 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
    

    查找ruby版本

    rvm list known
    

    安装ruby

    rvm install 2.6.3
    

    打印

    Searching for binary rubies, this might take some time.
    No binary rubies available for: osx/11.0/x86_64/ruby-2.6.3.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    Checking requirements for osx.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Warning: Calling `brew list` to only list formulae is deprecated! Use `brew list --formula` instead.
    Installing requirements for osx.
    Updating system - please wait
    Installing required packages: autoconf, automake, coreutils, libyaml, zlib - please wait
    Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
    Requirements installation successful.
    Installing Ruby from source to: /Users/lk/.rvm/rubies/ruby-2.6.3, this may take a while depending on your cpu(s)...
    ruby-2.6.3 - #downloading ruby-2.6.3, this may take a while depending on your connection...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100 13.8M  100 13.8M    0     0  14626      0  0:16:32  0:16:31  0:00:01  9138
    ruby-2.6.3 - #extracting ruby-2.6.3 to /Users/lk/.rvm/src/ruby-2.6.3 - please wait
    ruby-2.6.3 - #configuring - please wait
    ruby-2.6.3 - #post-configuration - please wait
    ruby-2.6.3 - #compiling - please wait
    ruby-2.6.3 - #installing - please wait
    ruby-2.6.3 - #making binaries executable - please wait
    ruby-2.6.3 - #downloading rubygems-3.0.8
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100  867k  100  867k    0     0  15168      0  0:00:58  0:00:58 --:--:-- 15812
    No checksum for downloaded archive, recording checksum in user configuration.
    ruby-2.6.3 - #extracting rubygems-3.0.8 - please wait
    ruby-2.6.3 - #removing old rubygems - please wait
    ruby-2.6.3 - #installing rubygems-3.0.8 - please wait
    ruby-2.6.3 - #gemset created /Users/lk/.rvm/gems/ruby-2.6.3@global
    ruby-2.6.3 - #importing gemset /Users/lk/.rvm/gemsets/global.gems - please wait
    ruby-2.6.3 - #generating global wrappers - please wait
    ruby-2.6.3 - #gemset created /Users/lk/.rvm/gems/ruby-2.6.3
    ruby-2.6.3 - #importing gemsetfile /Users/lk/.rvm/gemsets/default.gems evaluated to empty gem list
    ruby-2.6.3 - #generating default wrappers - please wait
    ruby-2.6.3 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
    Install of ruby-2.6.3 - #complete 
    Ruby was built without documentation, to build it run: rvm docs generate-ri
    

    查看ruby 版本

    ruby -v
    // 打印
    ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-darwin20]
    

    设置ruby默认版本

    rvm use 2.6.3 --default
    
    // 打印
    Using /Users/lk/.rvm/gems/ruby-2.6.3
    

    更改源(需要输入密码)

    sudo gem update --system
    
    // 打印
    Updating rubygems-update
    Fetching rubygems-update-3.1.4.gem
    /Users/lk/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/gem-wrappers-1.4.0/lib/gem-wrappers/installer.rb:56: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
    Successfully installed rubygems-update-3.1.4
    Parsing documentation for rubygems-update-3.1.4
    Installing ri documentation for rubygems-update-3.1.4
    Installing darkfish documentation for rubygems-update-3.1.4
    Done installing documentation for rubygems-update after 60 seconds
    Parsing documentation for rubygems-update-3.1.4
    Done installing documentation for rubygems-update after 0 seconds
    Installing RubyGems 3.1.4
      Successfully built RubyGem
      Name: bundler
      Version: 2.1.4
      File: bundler-2.1.4.gem
    /Users/lk/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/gem-wrappers-1.4.0/lib/gem-wrappers/installer.rb:56: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
    Bundler 2.1.4 installed
    RubyGems 3.1.4 installed
    Regenerating binstubs
    Parsing documentation for rubygems-3.1.4
    Installing ri documentation for rubygems-3.1.4
    
    === 3.1.4 / 2020-06-03
    
    Minor enhancements:
    
    * Deprecate rubyforge_project attribute only during build
      time. Pull request #3609 by Josef Šimánek.
    * Update links. Pull request #3610 by Josef Šimánek.
    * Run CI at 3.1 branch head as well. Pull request #3677 by Josef Šimánek.
    * Remove failing ubuntu-rvm CI flow. Pull request #3611 by
      Josef Šimánek.
    
    === 3.1.3 / 2020-05-05
    
    Minor enhancements:
    
    * Resolver: require NameTuple before use. Pull request #3171 by Olle
      Jonsson.
    * Use absolute paths with autoload. Pull request #3100 by David Rodríguez.
    * Avoid changing $SOURCE_DATE_EPOCH. Pull request #3088 by Ellen Marie
      Dash.
    * Use Bundler 2.1.4. Pull request #3072 by Hiroshi SHIBATA.
    * Add tests to check if Gem.ruby_version works with ruby git master.
      Pull request #3049 by Yusuke Endoh.
    
    Bug fixes:
    
    * Fix platform comparison check in #contains_requirable_file?. Pull
      request #3495 by Benoit Daloze.
    * Improve gzip errors logging. Pull request #3485 by David Rodríguez.
    * Fix incorrect `gem uninstall --all` message. Pull request #3483 by David
      Rodríguez.
    * Fix incorrect bundler version being required. Pull request #3458 by
      David Rodríguez.
    * Fix gem install from a gemdeps file with complex dependencies.
      Pull request #3054 by Luis Sagastume.
    
    === 3.1.2 / 2019-12-20
    
    Minor enhancements:
    
    * Restore non prompting `gem update --system` behavior. Pull request #3040
      by David Rodríguez.
    * Show only release notes for new code installed. Pull request #3041 by
      David Rodríguez.
    * Inform about installed `bundle` executable after `gem update --system`.
      Pull request #3042 by David Rodríguez.
    * Use Bundler 2.1.2. Pull request #3043 by SHIBATA Hiroshi.
    
    Bug fixes:
    
    * Require `uri` in source.rb. Pull request #3034 by mihaibuzgau.
    * Fix `gem update --system --force`. Pull request #3035 by David
      Rodríguez.
    * Move `require uri` to source_list. Pull request #3038 by mihaibuzgau.
    
    === 3.1.1 / 2019-12-16
    
    Bug fixes:
    
    * Vendor Bundler 2.1.0 again. The version of Bundler with
      RubyGems 3.1.0 was Bundler 2.1.0.pre.3. Pull request #3029 by
      SHIBATA Hiroshi.
    
    === 3.1.0 / 2019-12-16
    
    Major enhancements:
    
    * Vendor bundler 2.1. Pull request #3028 by David Rodríguez.
    
    Minor enhancements:
    
    * Check for rubygems.org typo squatting sources. Pull request #2999 by
      Luis Sagastume.
    * Refactor remote fetcher. Pull request #3017 by David Rodríguez.
    * Lazily load `open3`. Pull request #3001 by David Rodríguez.
    * Remove `delegate` dependency. Pull request #3002 by David Rodríguez.
    * Lazily load `uri`. Pull request #3005 by David Rodríguez.
    * Lazily load `rubygems/gem_runner` during tests. Pull request #3009 by
      David Rodríguez.
    * Use bundler to manage development dependencies. Pull request #3012 by
      David Rodríguez.
    
    Bug fixes:
    
    * Remove unnecessary executable flags. Pull request #2982 by David
      Rodríguez.
    * Remove configuration that contained a typo. Pull request #2989 by David
      Rodríguez.
    
    Compatibility changes:
    
    * Remove 1.8.7 leftovers. Pull request #2972 by David Rodríguez.
    * Deprecate `gem generate_index --modern` and `gem generate_index
      --no-modern`. Pull request #2992 by David Rodríguez.
    
    === 3.1.0.pre3 / 2019-11-11
    
    Minor enhancements:
    
    * Fix gem pristine not accounting for user installed gems. Pull request
      #2914 by Luis Sagastume.
    * Refactor keyword argument test for Ruby 2.7. Pull request #2947 by
      SHIBATA Hiroshi.
    * Fix errors at frozen Gem::Version. Pull request #2949 by Nobuyoshi
      Nakada.
    * Remove taint usage on Ruby 2.7+. Pull request #2951 by Jeremy Evans.
    * Check Manifest.txt is up to date. Pull request #2953 by David Rodríguez.
    * Clarify symlink conditionals in tests. Pull request #2962 by David
      Rodríguez.
    * Update command line parsing to work under ps. Pull request #2966 by
      David Rodríguez.
    * Properly test `Gem::Specifications.stub_for`. Pull request #2970 by
      David Rodríguez.
    * Fix Gem::LOADED_SPECS_MUTEX handling for recursive locking. Pull request
      #2985 by MSP-Greg.
    
    === 3.1.0.pre2 / 2019-10-15
    
    Minor enhancements:
    
    * Optimize Gem::Package::TarReader#each. Pull request #2941 by Jean byroot
      Boussier.
    * Time comparison around date boundary. Pull request #2944 by Nobuyoshi
      Nakada.
    
    === 3.1.0.pre1 / 2019-10-08
    
    Major enhancements:
    
    * Try to use bundler-2.1.0.pre.2. Pull request #2923 by SHIBATA Hiroshi.
    * [Require] Ensure -I beats a default gem. Pull request #1868 by Samuel
      Giddins.
    * [Specification] Prefer user-installed gems to default gems. Pull request
      #2112 by Samuel Giddins.
    * Multifactor authentication for yank command. Pull request #2514 by Qiu
      Chaofan.
    * Autoswitch to exact bundler version if present. Pull request #2583 by
      David Rodríguez.
    
    Minor enhancements:
    
    * Fix Gem::Requirement equality comparison when ~> operator is used. Pull
      request #2554 by Grey Baker.
    * Don't use a proxy if https_proxy env var is empty. Pull request #2567 by
      Luis Sagastume.
    * Fix typo in specs warning. Pull request #2585 by Rui.
    * Bin/gem: remove initial empty line. Pull request #2602 by Kenyon Ralph.
    * Avoid rdoc hook when it's failed to load rdoc library. Pull request
      #2604 by SHIBATA Hiroshi.
    * Refactor get_proxy_from_env logic. Pull request #2611 by Luis Sagastume.
    * Allow to easily bisect flaky failures. Pull request #2626 by David
      Rodríguez.
    * Fix `--ignore-dependencies` flag not installing platform specific gems.
      Pull request #2631 by David Rodríguez.
    * Make `gem install --explain` list platforms. Pull request #2634 by David
      Rodríguez.
    * Make `gem update --explain` list platforms. Pull request #2635 by David
      Rodríguez.
    * Refactoring install and update explanations. Pull request #2643 by David
      Rodríguez.
    * Restore transitiveness of version comparison. Pull request #2651 by
      David Rodríguez.
    * Undo requirement sorting. Pull request #2652 by David Rodríguez.
    * Update dummy version of Bundler for #2581. Pull request #2584 by SHIBATA
      Hiroshi.
    * Ignore to handle the different platform. Pull request #2672 by SHIBATA
      Hiroshi.
    * Make Gem::Specification.default_stubs to public methods. Pull request
      #2675 by SHIBATA Hiroshi.
    * Sort files and test_files in specifications. Pull request #2524 by
      Christopher Baines.
    * Fix comment of Gem::Specification#required_ruby_version=. Pull request
      #2732 by Alex Junger.
    * Config_file.rb - update path separator in ENV['GEMRC'] logic. Pull
      request #2735 by MSP-Greg.
    * Fix `ruby setup.rb` warnings. Pull request #2737 by David Rodríguez.
    * Don't use regex delimiters when searching for a dependency. Pull request
      #2738 by Luis Sagastume.
    * Refactor query command. Pull request #2739 by Luis Sagastume.
    * Don't remove default spec files from mapping after require. Pull request
      #2741 by David Rodríguez.
    * Cleanup base test case. Pull request #2742 by David Rodríguez.
    * Simplify Specification#gems_dir. Pull request #2745 by David Rodríguez.
    * Fix test warning. Pull request #2746 by David Rodríguez.
    * Extract an `add_to_load_path` method. Pull request #2749 by David
      Rodríguez.
    * Fix setup command if format_executable is true by default. Pull request
      #2766 by Jeremy Evans.
    * Update the certificate files to make the test pass on Debian 10. Pull
      request #2777 by Yusuke Endoh.
    * Write to the correct config file(.gemrc). Pull request #2779 by Luis
      Sagastume.
    * Fix for large values in UID/GID fields in tar archives. Pull request
      #2780 by Alexey Shein.
    * Lazy require stringio. Pull request #2781 by Luis Sagastume.
    * Make Gem::Specification#ruby_code handle OpenSSL::PKey::RSA objects.
      Pull request #2782 by Luis Sagastume.
    * Fix setup command test for bundler with program_suffix. Pull request
      #2783 by Sorah Fukumori.
    * Make sure `rake package` works. Pull request #2787 by David Rodríguez.
    * Synchronize access to the Gem::Specification::LOAD_CACHE Hash. Pull
      request #2789 by Benoit Daloze.
    * Task to install rubygems to local system. Pull request #2795 by David
      Rodríguez.
    * Add an attr_reader to Gem::Installer for the package instance variable.
      Pull request #2796 by Daniel Berger.
    * Switch CI script to bash. Pull request #2799 by David Rodríguez.
    * Move gemcutter utilities code to Gem::Command. Pull request #2803 by
      Luis Sagastume.
    * Add raw spec method to gem package. Pull request #2806 by Luis
      Sagastume.
    * Improve `rake package` test error message. Pull request #2815 by David
      Rodríguez.
    * Resolve `@@project_dir` from test file paths. Pull request #2843 by
      Nobuyoshi Nakada.
    * Remove dead code in Gem::Validator. Pull request #2537 by Ellen Marie
      Dash.
    * The date might have advanced since TODAY has been set. Pull request
      #2938 by Nobuyoshi Nakada.
    * Remove old ci configurations. Pull request #2917 by SHIBATA Hiroshi.
    * Add Gem::Dependency identity. Pull request #2936 by Luis Sagastume.
    * Filter dependency type and name strictly. Pull request #2930 by SHIBATA
      Hiroshi.
    * Always pass an encoding option to Zlib::GzipReader.wrap. Pull request
      #2933 by Nobuyoshi Nakada.
    * Introduce default prerelease requirement. Pull request #2925 by David
      Rodríguez.
    * Detect libc version, closes #2918. Pull request #2922 by fauno.
    * Use IAM role to extract security-credentials for EC2 instance. Pull
      request #2894 by Alexander Pakulov.
    * Improve `gem uninstall --all`. Pull request #2893 by David Rodríguez.
    * Use `RbConfig::CONFIG['rubylibprefix']`. Pull request #2889 by Nobuyoshi
      Nakada.
    * Build the first gemspec we found if no arguments are passed to gem
      build. Pull request #2887 by Luis Sagastume.
    * $LOAD_PATH elements should be real paths. Pull request #2885 by
      Nobuyoshi Nakada.
    * Use the standard RUBY_ENGINE_VERSION instead of JRUBY_VERSION. Pull
      request #2864 by Benoit Daloze.
    * Cleanup after testing `rake package`. Pull request #2862 by David
      Rodríguez.
    * Cherry-pick shushing deprecation warnings from ruby-core. Pull request
      #2861 by David Rodríguez.
    * Ext/builder.rb cleanup. Pull request #2849 by Luis Sagastume.
    * Fix @ran_rake assignment in builder.rb. Pull request #2850 by Luis
      Sagastume.
    * Remove test suite warnings. Pull request #2845 by Luis Sagastume.
    * Replace domain parameter with a parameter to suppress suggestions. Pull
      request #2846 by Luis Sagastume.
    * Move default specifications dir definition out of BasicSpecification.
      Pull request #2841 by Vít Ondruch.
    * There is no usage of @orig_env_* variables in test suite. Pull request
      #2838 by SHIBATA Hiroshi.
    * Use File#open instead of Kernel#open in stub_specification.rb. Pull
      request #2834 by Luis Sagastume.
    * Simplify #to_ruby code. Pull request #2825 by Nobuyoshi Nakada.
    * Add a gem attr to the Gem::Package class. Pull request #2828 by Daniel
      Berger.
    * Remove useless TODO comment. Pull request #2818 by Luis Sagastume.
    
    Bug fixes:
    
    * Fix typos in History.txt. Pull request #2565 by Igor Zubkov.
    * Remove unused empty sources array. Pull request #2598 by Aaron
      Patterson.
    * Fix windows specific executables generated by `gem install`. Pull
      request #2628 by David Rodríguez.
    * Gem::Specification#to_ruby needs OpenSSL. Pull request #2937 by
      Nobuyoshi Nakada.
    * Set SOURCE_DATE_EPOCH env var if not provided. Pull request #2882 by
      Ellen Marie Dash.
    * Installer.rb - fix #windows_stub_script. Pull request #2876 by MSP-Greg.
    * Fixed deprecation message. Pull request #2867 by Nobuyoshi Nakada.
    * Fix requiring default gems to consider prereleases. Pull request #2728
      by David Rodríguez.
    * Forbid `find_spec_for_exe` without an `exec_name`. Pull request #2706 by
      David Rodríguez.
    * Do not prompt for passphrase when key can be loaded without it. Pull
      request #2710 by Luis Sagastume.
    * Add missing wrapper. Pull request #2690 by David Rodríguez.
    * Remove long ago deprecated methods. Pull request #2704 by David
      Rodríguez.
    * Renamed duplicate test. Pull request #2678 by Nobuyoshi Nakada.
    * File.exists? is deprecated. Pull request #2855 by SHIBATA Hiroshi.
    * Fixed to warn with shadowing outer local variable. Pull request #2856 by
      SHIBATA Hiroshi.
    * Fix explain with ignore-dependencies. Pull request #2647 by David
      Rodríguez.
    * Fix default gem executable installation when folder is not `bin/`. Pull
      request #2649 by David Rodríguez.
    * Fix cryptic error on local and ignore-dependencies combination. Pull
      request #2650 by David Rodríguez.
    
    Compatibility changes:
    
    * Remove commented code from command.rb. Pull request #2620 by Luis
      Sagastume.
    * Suppress keywords warning. Pull request #2934 by Nobuyoshi Nakada.
    * Suppress Ruby 2.7's real kwargs warning. Pull request #2912 by Koichi
      ITO.
    * Fix Kernel#warn override. Pull request #2911 by Jeremy Evans.
    * Make deprecate Gem::RubyGemsVersion and Gem::ConfigMap. Pull request
      #2857 by SHIBATA Hiroshi.
    * Deprecate Gem::RemoteFetcher#fetch_size. Pull request #2833 by Luis
      Sagastume.
    * Remove conflict.rb code that was supposed to be removed in Rubygems 3.
      Pull request #2802 by Luis Sagastume.
    * Explicitly deprecate `rubyforge_project`. Pull request #2798 by David
      Rodríguez.
    * Compatibility cleanups. Pull request #2754 by David Rodríguez.
    * Remove `others_possible` activation request param. Pull request #2747 by
      David Rodríguez.
    * Remove dependency installer deprecated code. Pull request #2740 by Luis
      Sagastume.
    * Deprecate unused Gem::Installer#unpack method. Pull request #2715 by Vít
      Ondruch.
    * Removed guard condition with USE_BUNDLER_FOR_GEMDEPS. Pull request #2716
      by SHIBATA Hiroshi.
    * Skip deprecation warning during specs. Pull request #2718 by David
      Rodríguez.
    * Remove QuickLoader reference. Pull request #2719 by David Rodríguez.
    * Removed circular require. Pull request #2679 by Nobuyoshi Nakada.
    * Removed needless environmental variable for Travis CI. Pull request
      #2685 by SHIBATA Hiroshi.
    * Deprecate a few unused methods. Pull request #2674 by David Rodríguez.
    * Removing yaml require. Pull request #2538 by Luciano Sousa.
    * Add deprecation warnings for cli options. Pull request #2607 by Luis
      Sagastume.
    
    Style changes:
    
    * Enable `Layout/SpaceInsideParens` rubocop cop. Pull request #2630 by
      David Rodríguez.
    * Remove some extra empty lines from the repo. Pull request #2669 by David
      Rodríguez.
    * Enable Style/EmptyLinesAroundClassBody rubocop cop. Pull request #2636
      by David Rodríguez.
    * Enable Style/BlockDelimiters rubocop cop. Pull request #2640 by David
      Rodríguez.
    * Enable Layout/SpaceAroundOperators rubocop cop. Pull request #2642 by
      David Rodríguez.
    * Rubocop 0.71. Pull request #2785 by David Rodríguez.
    
    
    ------------------------------------------------------------------------------
    
    RubyGems installed the following executables:
        /Users/lk/.rvm/rubies/ruby-2.6.3/bin/gem
        /Users/lk/.rvm/rubies/ruby-2.6.3/bin/bundle
    
    Ruby Interactive (ri) documentation was installed. ri is kind of like man 
    pages for Ruby libraries. You may access it like this:
      ri Classname
      ri Classname.class_method
      ri Classname#instance_method
    If you do not wish to install this documentation in the future, use the
    --no-document flag, or set it as the default in your ~/.gemrc file. See
    'gem help env' for details.
    
    RubyGems system software updated
    

    查看源

    gem sources -l
    
    打印
    https://rubygems.org/
    
    // 添加源 在查看
    gem sources --add https://gems.ruby-china.com/
    // 删除org的源
    gem sources --remove https://rubygems.org/
    

    // 安装cocoapods

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

    需要密码 安装过程

    Fetching i18n-1.8.5.gem
    Fetching thread_safe-0.3.6.gem
    Fetching tzinfo-1.2.8.gem
    Fetching activesupport-5.2.4.4.gem
    Fetching nap-1.1.0.gem
    Fetching fuzzy_match-2.0.4.gem
    Fetching concurrent-ruby-1.1.7.gem
    Fetching httpclient-2.8.3.gem
    Fetching algoliasearch-1.27.5.gem
    Fetching ffi-1.13.1.gem
    Fetching ethon-0.12.0.gem
    Fetching typhoeus-1.4.0.gem
    Fetching netrc-0.11.0.gem
    Fetching public_suffix-4.0.6.gem
    Fetching addressable-2.7.0.gem
    Fetching cocoapods-core-1.10.0.gem
    Fetching claide-1.0.3.gem
    Fetching cocoapods-deintegrate-1.0.4.gem
    Fetching cocoapods-downloader-1.4.0.gem
    Fetching cocoapods-plugins-1.0.0.gem
    Fetching cocoapods-search-1.0.0.gem
    Fetching cocoapods-trunk-1.5.0.gem
    Fetching cocoapods-try-1.2.0.gem
    Fetching molinillo-0.6.6.gem
    Fetching atomos-0.1.3.gem
    Fetching CFPropertyList-3.0.2.gem
    Fetching colored2-3.1.2.gem
    Fetching nanaimo-0.3.0.gem
    Fetching xcodeproj-1.19.0.gem
    Fetching escape-0.0.4.gem
    Fetching fourflusher-2.3.1.gem
    Fetching gh_inspector-1.1.3.gem
    Fetching ruby-macho-1.4.0.gem
    Fetching cocoapods-1.10.0.gem
    /Users/lk/.rvm/rubies/ruby-2.6.3/lib/ruby/gems/2.6.0/gems/gem-wrappers-1.4.0/lib/gem-wrappers/installer.rb:56: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
    Successfully installed concurrent-ruby-1.1.7
    
    HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
    But that may break your application.
    
    If you are upgrading your Rails application from an older version of Rails:
    
    Please check your Rails app for 'config.i18n.fallbacks = true'.
    If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
    'config.i18n.fallbacks = [I18n.default_locale]'.
    If not, fallbacks will be broken in your app by I18n 1.1.x.
    
    If you are starting a NEW Rails application, you can ignore this notice.
    
    For more info see:
    https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
    
    Successfully installed i18n-1.8.5
    Successfully installed thread_safe-0.3.6
    Successfully installed tzinfo-1.2.8
    Successfully installed activesupport-5.2.4.4
    Successfully installed nap-1.1.0
    Successfully installed fuzzy_match-2.0.4
    Successfully installed httpclient-2.8.3
    A new major version is available for Algolia! Please now use the https://rubygems.org/gems/algolia gem to get the latest features.
    Successfully installed algoliasearch-1.27.5
    Building native extensions. This could take a while...
    Successfully installed ffi-1.13.1
    Successfully installed ethon-0.12.0
    Successfully installed typhoeus-1.4.0
    Successfully installed netrc-0.11.0
    Successfully installed public_suffix-4.0.6
    Successfully installed addressable-2.7.0
    Successfully installed cocoapods-core-1.10.0
    Successfully installed claide-1.0.3
    Successfully installed cocoapods-deintegrate-1.0.4
    Successfully installed cocoapods-downloader-1.4.0
    Successfully installed cocoapods-plugins-1.0.0
    Successfully installed cocoapods-search-1.0.0
    Successfully installed cocoapods-trunk-1.5.0
    Successfully installed cocoapods-try-1.2.0
    Successfully installed molinillo-0.6.6
    Successfully installed atomos-0.1.3
    Successfully installed CFPropertyList-3.0.2
    Successfully installed colored2-3.1.2
    Successfully installed nanaimo-0.3.0
    Successfully installed xcodeproj-1.19.0
    Successfully installed escape-0.0.4
    Successfully installed fourflusher-2.3.1
    Successfully installed gh_inspector-1.1.3
    Successfully installed ruby-macho-1.4.0
    Successfully installed cocoapods-1.10.0
    Parsing documentation for concurrent-ruby-1.1.7
    Installing ri documentation for concurrent-ruby-1.1.7
    Parsing documentation for i18n-1.8.5
    Installing ri documentation for i18n-1.8.5
    Parsing documentation for thread_safe-0.3.6
    Installing ri documentation for thread_safe-0.3.6
    Parsing documentation for tzinfo-1.2.8
    Installing ri documentation for tzinfo-1.2.8
    Parsing documentation for activesupport-5.2.4.4
    Installing ri documentation for activesupport-5.2.4.4
    Parsing documentation for nap-1.1.0
    Installing ri documentation for nap-1.1.0
    Parsing documentation for fuzzy_match-2.0.4
    Installing ri documentation for fuzzy_match-2.0.4
    Parsing documentation for httpclient-2.8.3
    Installing ri documentation for httpclient-2.8.3
    Parsing documentation for algoliasearch-1.27.5
    Installing ri documentation for algoliasearch-1.27.5
    Parsing documentation for ffi-1.13.1
    Installing ri documentation for ffi-1.13.1
    Parsing documentation for ethon-0.12.0
    Installing ri documentation for ethon-0.12.0
    Parsing documentation for typhoeus-1.4.0
    Installing ri documentation for typhoeus-1.4.0
    Parsing documentation for netrc-0.11.0
    Installing ri documentation for netrc-0.11.0
    Parsing documentation for public_suffix-4.0.6
    Installing ri documentation for public_suffix-4.0.6
    Parsing documentation for addressable-2.7.0
    Installing ri documentation for addressable-2.7.0
    Parsing documentation for cocoapods-core-1.10.0
    Installing ri documentation for cocoapods-core-1.10.0
    Parsing documentation for claide-1.0.3
    Installing ri documentation for claide-1.0.3
    Parsing documentation for cocoapods-deintegrate-1.0.4
    Installing ri documentation for cocoapods-deintegrate-1.0.4
    Parsing documentation for cocoapods-downloader-1.4.0
    Installing ri documentation for cocoapods-downloader-1.4.0
    Parsing documentation for cocoapods-plugins-1.0.0
    Installing ri documentation for cocoapods-plugins-1.0.0
    Parsing documentation for cocoapods-search-1.0.0
    Installing ri documentation for cocoapods-search-1.0.0
    Parsing documentation for cocoapods-trunk-1.5.0
    Installing ri documentation for cocoapods-trunk-1.5.0
    Parsing documentation for cocoapods-try-1.2.0
    Installing ri documentation for cocoapods-try-1.2.0
    Parsing documentation for molinillo-0.6.6
    Installing ri documentation for molinillo-0.6.6
    Parsing documentation for atomos-0.1.3
    Installing ri documentation for atomos-0.1.3
    Parsing documentation for CFPropertyList-3.0.2
    Installing ri documentation for CFPropertyList-3.0.2
    Parsing documentation for colored2-3.1.2
    Installing ri documentation for colored2-3.1.2
    Parsing documentation for nanaimo-0.3.0
    Installing ri documentation for nanaimo-0.3.0
    Parsing documentation for xcodeproj-1.19.0
    Installing ri documentation for xcodeproj-1.19.0
    Parsing documentation for escape-0.0.4
    Installing ri documentation for escape-0.0.4
    Parsing documentation for fourflusher-2.3.1
    Installing ri documentation for fourflusher-2.3.1
    Parsing documentation for gh_inspector-1.1.3
    Installing ri documentation for gh_inspector-1.1.3
    Parsing documentation for ruby-macho-1.4.0
    Installing ri documentation for ruby-macho-1.4.0
    Parsing documentation for cocoapods-1.10.0
    Installing ri documentation for cocoapods-1.10.0
    Done installing documentation for concurrent-ruby, i18n, thread_safe, tzinfo, activesupport, nap, fuzzy_match, httpclient, algoliasearch, ffi, ethon, typhoeus, netrc, public_suffix, addressable, cocoapods-core, claide, cocoapods-deintegrate, cocoapods-downloader, cocoapods-plugins, cocoapods-search, cocoapods-trunk, cocoapods-try, molinillo, atomos, CFPropertyList, colored2, nanaimo, xcodeproj, escape, fourflusher, gh_inspector, ruby-macho, cocoapods after 42 seconds
    34 gems installed
    

    // 设置一下

    pod setup
    

    如果在pod install 时出现提示如下错误

    [!] Error installing PKHUD
    [!] /usr/bin/git clone https://github.com/pkluz/PKHUD.git /var/folders/v2/6hns1wvj6bv33tnh501pzb480000gn/T/d20201120-36609-4bolhj --template= --single-branch --depth 1 --branch 5.3.0
    
    Cloning into '/var/folders/v2/6hns1wvj6bv33tnh501pzb480000gn/T/d20201120-36609-4bolhj'...
    fatal: unable to access 'https://github.com/pkluz/PKHUD.git/': Failed to connect to github.com port 443: Operation timed out
    

    重新安装了cocoapods一下最新版本的pod

    sudo gem install cocoapods --pre
    
    // 打印
    Successfully installed cocoapods-1.10.0
    Parsing documentation for cocoapods-1.10.0
    Done installing documentation for cocoapods after 1 seconds
    1 gem installed
    

    相关文章

      网友评论

          本文标题:安装RVM,cocoapods过程及参考

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