美文网首页
安装cocopods详细步骤

安装cocopods详细步骤

作者: jqboooo | 来源:发表于2021-06-15 17:10 被阅读0次

    参考:

    https://www.jianshu.com/p/21c80138c3c6
    https://www.jianshu.com/p/f43b5964f582

    解决GPG公钥的导入问题: https://www.jianshu.com/p/b3aaab3dc55f

    1. 首先通过GPG证书来安装RVM

    Last login: Thu Jun  3 09:13:40 on ttys000 
    bobo@bobodeMacBook-Pro ~ % brew install gnupg 
    Updating Homebrew... 
    ==> Homebrew has enabled anonymous aggregate formula and cask analytics. 
    Read the analytics documentation (and how to opt-out) here:   
      https://docs.brew.sh/Analytics 
    No analytics have been recorded yet (nor will be during this `brew` run). 
    
    ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:      
      https://github.com/Homebrew/brew#donations 
    Error: Failed to link all completions, docs and manpages:   
      Permission denied @ dir_s_mkdir - /usr/local/share/man/man1 
    Error: The following directories are not writable by your user: 
    /usr/local/share/man 
    /usr/local/share/man/man8 
    
    You should change the ownership of these directories to your user.   
      sudo chown -R $(whoami) /usr/local/share/man /usr/local/share/man/man8 
    
    And make sure that your user has write permission.   
      chmod u+w /usr/local/share/man /usr/local/share/man/man8
    
    碰到文件访问权限的问题,需要执行上面的指令改变文件访问权限
    bobo@bobodeMacBook-Pro ~ % sudo chmod u+w /usr/local/share/man /usr/local/share/man/man8
    
    回车后输入密码即可,然后在次执行 brew install gnupg 指令,还是碰到下面问题
    bobo@bobodeMacBook-Pro ~ % brew install gnupg                                            
    Error: The following directories are not writable by your user: 
    /usr/local/share/man 
    /usr/local/share/man/man8 
    
    You should change the ownership of these directories to your user.   
      sudo chown -R $(whoami) /usr/local/share/man /usr/local/share/man/man8 
    
    And make sure that your user has write permission.   
      chmod u+w /usr/local/share/man /usr/local/share/man/man8
    
    最后索性把文件访问权限全部加上,执行下面指令:
    bobo@bobodeMacBook-Pro ~ % sudo chmod 777 /usr/local/share/man /usr/local/share/man/man8
    
    回车输入密码后,然后在执行: brew install gnupg
    bobo@bobodeMacBook-Pro ~ % brew install gnupg 
    
    下载安装后:
    bobo@bobodeMacBook-Pro ~ % brew install gnupg                                            
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gettext-0.21.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gmp-6.2.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/bdw-gc-8.0.4_2.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libffi-3.3_3.big_sur.bottle.tar.gz 
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/m4-1.4.18.big_sur.bottle.1.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libtool-2.4.6_3.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libunistring-0.9.10.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/pkg-config-0.29.2_3.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/readline-8.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/guile-3.0.7.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libidn2-2.3.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libtasn1-4.17.0.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/nettle-3.7.2.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/p11-kit-0.23.22.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/openssl%401.1-1.1.1k.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libevent-2.1.12.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/c-ares-1.17.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/jemalloc-5.2.1_1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libev-4.33.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/nghttp2-1.43.0.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/unbound-1.13.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gnutls-3.6.16.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libgpg-error-1.42.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libassuan-2.5.5.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libgcrypt-1.9.3.big_sur.bottle.1.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libksba-1.5.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libusb-1.0.24.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/npth-1.6.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/pinentry-1.1.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gnupg-2.3.1.big_sur.bottle.tar.gz 
    ######################################################################## 100.0% 
    ==> Installing dependencies for gnupg: gettext, gmp, bdw-gc, libffi, m4, libtool, libunistring, pkg-config, readline, guile, libidn2, libtasn1, nettle, p11-kit, openssl@1.1, libevent, c-ares, jemalloc, libev, nghttp2, unbound, gnutls, libgpg-error, libassuan, libgcrypt, libksba, libusb, npth and pinentry 
    ==> 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_2.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/bdw-gc/8.0.4_2: 69 files, 1.6MB 
    ==> Installing gnupg dependency: libffi 
    ==> Pouring libffi-3.3_3.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libffi/3.3_3: 17 files, 540.5KB 
    ==> Installing gnupg dependency: m4 
    ==> Pouring m4-1.4.18.big_sur.bottle.1.tar.gz 
    🍺  /usr/local/Cellar/m4/1.4.18: 13 files, 672.3KB 
    ==> Installing gnupg dependency: libtool 
    ==> Pouring libtool-2.4.6_3.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libtool/2.4.6_3: 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.8KB 
    ==> Installing gnupg dependency: readline 
    ==> Pouring readline-8.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/readline/8.1: 48 files, 1.6MB 
    ==> Installing gnupg dependency: guile 
    ==> Pouring guile-3.0.7.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/guile/3.0.7: 838 files, 56.8MB 
    ==> Installing gnupg dependency: libidn2 
    ==> Pouring libidn2-2.3.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libidn2/2.3.1: 73 files, 812.3KB 
    ==> Installing gnupg dependency: libtasn1 
    ==> Pouring libtasn1-4.17.0.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libtasn1/4.17.0: 61 files, 640.2KB 
    ==> Installing gnupg dependency: nettle 
    ==> Pouring nettle-3.7.2.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/nettle/3.7.2: 89 files, 2.7MB 
    ==> Installing gnupg dependency: p11-kit 
    ==> Pouring p11-kit-0.23.22.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/p11-kit/0.23.22: 63 files, 3MB 
    ==> Installing gnupg dependency: openssl@1.1 
    ==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz 
    ==> Regenerating CA certificate bundle from keychain, this may take a while... 
    🍺  /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 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: c-ares 
    ==> Pouring c-ares-1.17.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/c-ares/1.17.1: 85 files, 672.5KB 
    ==> Installing gnupg dependency: jemalloc 
    ==> Pouring jemalloc-5.2.1_1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/jemalloc/5.2.1_1: 16 files, 2MB 
    ==> Installing gnupg dependency: libev 
    ==> Pouring libev-4.33.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libev/4.33: 12 files, 484.0KB 
    ==> Installing gnupg dependency: nghttp2 
    ==> Pouring nghttp2-1.43.0.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/nghttp2/1.43.0: 24 files, 2.8MB 
    ==> Installing gnupg dependency: unbound 
    ==> Pouring unbound-1.13.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/unbound/1.13.1: 57 files, 5.4MB 
    ==> Installing gnupg dependency: gnutls 
    ==> Pouring gnutls-3.6.16.big_sur.bottle.tar.gz 
    ==> Regenerating CA certificate bundle from keychain, this may take a while... 
    🍺  /usr/local/Cellar/gnutls/3.6.16: 1,250 files, 11MB 
    ==> Installing gnupg dependency: libgpg-error 
    ==> Pouring libgpg-error-1.42.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libgpg-error/1.42: 27 files, 1MB 
    ==> Installing gnupg dependency: libassuan 
    ==> Pouring libassuan-2.5.5.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libassuan/2.5.5: 17 files, 505.4KB 
    ==> Installing gnupg dependency: libgcrypt 
    ==> Pouring libgcrypt-1.9.3.big_sur.bottle.1.tar.gz 
    🍺  /usr/local/Cellar/libgcrypt/1.9.3: 23 files, 3.1MB 
    ==> Installing gnupg dependency: libksba 
    ==> Pouring libksba-1.5.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libksba/1.5.1: 18 files, 495.2KB 
    ==> Installing gnupg dependency: libusb 
    ==> Pouring libusb-1.0.24.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB 
    ==> Installing gnupg dependency: npth 
    ==> Pouring npth-1.6.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/npth/1.6: 12 files, 134KB 
    ==> Installing gnupg dependency: pinentry 
    ==> Pouring pinentry-1.1.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/pinentry/1.1.1: 12 files, 261.5KB 
    ==> Installing gnupg ==> Pouring gnupg-2.3.1.big_sur.bottle.tar.gz 
    🍺  /usr/local/Cellar/gnupg/2.3.1: 148 files, 13.2MB
    

    2. 安装RVM,利用七牛安装rvm

    \curl -sSL http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/rvm-installer.txt | bash -s stable
    
    执行如下,需要导入证书签名信息
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz 
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc 
    gpg: 目录‘/Users/bobo/.gnupg’已创建 
    gpg: 钥匙箱‘/Users/bobo/.gnupg/pubring.kbx’已创建 
    gpg: 签名建立于 六  1/16 02:46:22 2021 CST 
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
    gpg: 无法检查签名:No public key 
    GPG signature verification failed for '/Users/bobo/.rvm/archives/rvm-1.29.12.tgz' - 'http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.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: 从公钥服务器接收失败:No route to host 错误信息。
    需要修改指令链接:gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    参考:https://www.jianshu.com/p/b3aaab3dc55f
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
    gpg: 从公钥服务器接收失败:No route to host 
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz 
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc 
    gpg: 签名建立于 六  1/16 02:46:22 2021 CST 
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
    gpg: 无法检查签名:No public key 
    GPG signature verification failed for '/Users/bobo/.rvm/archives/rvm-1.29.12.tgz' - 'http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.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 
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
    gpg: 从公钥服务器接收失败:No route to host 
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB 
    gpg: 从公钥服务器接收失败:No route to host 
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3                         
    gpg: 从公钥服务器接收失败:No route to host 
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 
    gpg: /Users/bobo/.gnupg/trustdb.gpg:建立了信任度数据库 
    gpg: 密钥 3804BB82D39DC0E3:公钥 “Michal Papis (RVM signing) <mpapis@gmail.com>” 已导入 gpg: 处理的总数:1 
    gpg:               已导入:1 
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://ipv4.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
    
    然后在重新执行安装 rvm 指令:
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz 
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc 
    gpg: 签名建立于 六  1/16 02:46:22 2021 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/bobo/.rvm/archives/rvm-1.29.12.tgz' 
    Installing RVM to /Users/bobo/.rvm/     
        Adding rvm PATH line to /Users/bobo/.profile /Users/bobo/.mkshrc /Users/bobo/.bashrc /Users/bobo/.zshrc.     
        Adding rvm loading line to /Users/bobo/.profile /Users/bobo/.bash_profile /Users/bobo/.zlogin. 
    Installation of RVM in /Users/bobo/.rvm/ is almost complete:   
    
        * To start using RVM you need to run `source /Users/bobo/.rvm/scripts/rvm`     
          in all your open shell windows, in rare cases you need to reopen all shell windows. 
    /Users/bobo/.zshrc:1:export PATH=/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin 
    /Users/bobo/.bash_profile:1:export PATH=/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin   
    
        * WARNING: Above files contains PATH= with no $PATH inside, this can break RVM,     
          for details check https://github.com/rvm/rvm/issues/1351#issuecomment-10939525     
          to avoid this warning prepend $PATH 
    
    Thanks for installing RVM 🙏 
    Please consider donating to our open collective to help us maintain RVM. 
    
    👉  Donate: https://opencollective.com/rvm/donate
    
    然后在设置.zshrc环境变量
    bobo@bobodeMacBook-Pro ~ % source /Users/bobo/.rvm/scripts/rvm 
    bobo@bobodeMacBook-Pro ~ % sudo vim ~/.zshrc  
    Password: 
    bobo@bobodeMacBook-Pro ~ % sudo vim ~/.bash_profile  
    bobo@bobodeMacBook-Pro ~ % source ~/.zshrc  
    bobo@bobodeMacBook-Pro ~ % source ~/.bash_profile 
    
    查看rvm版本,查看ruby各个版本号
    bobo@bobodeMacBook-Pro ~ % rvm -v 
    rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io] 
    bobo@bobodeMacBook-Pro ~ % rvm list known 
    # MRI Rubies 
    [ruby-]1.8.6[-p420] 
    [ruby-]1.8.7[-head] # security released on head 
    [ruby-]1.9.1[-p431] 
    [ruby-]1.9.2[-p330] 
    [ruby-]1.9.3[-p551] 
    [ruby-]2.0.0[-p648] 
    [ruby-]2.1[.10] 
    [ruby-]2.2[.10] 
    [ruby-]2.3[.8] 
    [ruby-]2.4[.10] 
    [ruby-]2.5[.8] 
    [ruby-]2.6[.6] 
    [ruby-]2.7[.2] 
    [ruby-]3[.0.0] 
    ruby-head 
    
    # for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2 
    
    # JRuby 
    jruby-1.6[.8] 
    jruby-1.7[.27] 
    jruby-9.1[.17.0] 
    jruby[-9.2.14.0] 
    jruby-head 
    
    # Rubinius 
    rbx-1[.4.3] 
    rbx-2.3[.0] 
    rbx-2.4[.1] 
    rbx-2[.5.8] 
    rbx-3[.107] 
    rbx-4[.20] 
    rbx-5[.0] 
    rbx-head 
    
    # TruffleRuby 
    truffleruby[-20.3.0] 
    
    # Opal 
    opal 
    
    # Minimalistic ruby implementation - ISO 30170:2012 
    mruby-1.0.0 
    mruby-1.1.0 
    mruby-1.2.0 
    mruby-1.3.0 
    mruby-1[.4.1] 
    mruby-2.0.1 
    mruby-2[.1.1] 
    mruby[-head] 
    
    # Ruby Enterprise Edition 
    ree-1.8.6 
    ree[-1.8.7][-2012.02] 
    
    # Topaz 
    topaz 
    
    # MagLev 
    maglev-1.0.0 
    maglev-1.1[RC1] 
    maglev[-1.2Alpha4] 
    maglev-head 
    
    # Mac OS X Snow Leopard Or Newer 
    macruby-0.10 
    macruby-0.11 
    macruby[-0.12] 
    macruby-nightly 
    macruby-head 
    
    # IronRuby 
    ironruby[-1.1.3] 
    ironruby-head
    

    3. 通过 rvm 安装 ruby

    bobo@bobodeMacBook-Pro ~ % rvm install 3.0.0 
    Searching for binary rubies, this might take some time. 
    No binary rubies available for: osx/11.4/x86_64/ruby-3.0.0. 
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. 
    Checking requirements for osx. 
    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/bobo/.rvm/rubies/ruby-3.0.0, this may take a while depending on your cpu(s)... 
    ruby-3.0.0 - #downloading ruby-3.0.0, 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 18.6M  100 18.6M    0     0  2065k      0  0:00:09  0:00:09 --:--:-- 2863k 
    ruby-3.0.0 - #extracting ruby-3.0.0 to /Users/bobo/.rvm/src/ruby-3.0.0 - please wait 
    ruby-3.0.0 - #configuring - please wait 
    ruby-3.0.0 - #post-configuration - please wait 
    ruby-3.0.0 - #compiling - please wait 
    ruby-3.0.0 - #installing - please wait 
    ruby-3.0.0 - #making binaries executable - please wait 
    Installed rubygems 3.2.3 is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation. 
    ruby-3.0.0 - #gemset created /Users/bobo/.rvm/gems/ruby-3.0.0@global 
    ruby-3.0.0 - #importing gemset /Users/bobo/.rvm/gemsets/global.gems - please wait 
    ruby-3.0.0 - #generating global wrappers - please wait 
    ruby-3.0.0 - #gemset created /Users/bobo/.rvm/gems/ruby-3.0.0 
    ruby-3.0.0 - #importing gemsetfile /Users/bobo/.rvm/gemsets/default.gems evaluated to empty gem list 
    ruby-3.0.0 - #generating default wrappers - please wait 
    ruby-3.0.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). 
    Install of ruby-3.0.0 - #complete  
    Ruby was built without documentation, to build it run: rvm docs generate-ri
    
    查看ruby版本:ruby -v
    bobo@bobodeMacBook-Pro ~ % ruby -v ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
    
    通过 rvm 可管理ruby,并切换版本号: rvm use 3.0.0 --default
    bobo@bobodeMacBook-Pro ~ % rvm use 3.0.0 --default Using /Users/bobo/.rvm/gems/ruby-3.0.0
    
    更新 ruby
    bobo@bobodeMacBook-Pro ~ % sudo gem update --system  
    Password: 
    Updating rubygems-update 
    Fetching rubygems-update-3.2.19.gem 
    Successfully installed rubygems-update-3.2.19 
    Parsing documentation for rubygems-update-3.2.19 
    Installing ri documentation for rubygems-update-3.2.19 
    Installing darkfish documentation for rubygems-update-3.2.19 
    Done installing documentation for rubygems-update after 159 seconds 
    Parsing documentation for rubygems-update-3.2.19 
    Done installing documentation for rubygems-update after 0 seconds 
    Installing RubyGems 3.2.19   
      Successfully built RubyGem   
      Name: bundler   
      Version: 2.2.19   
      File: bundler-2.2.19.gem 
    Bundler 2.2.19 installed 
    RubyGems 3.2.19 installed 
    Regenerating binstubs 
    Regenerating plugins 
    Parsing documentation for rubygems-3.2.19 
    Installing ri documentation for rubygems-3.2.19 
    
    # 3.2.19 / 2021-05-31 
    
    ## Enhancements: 
    
      * Fix `gem help build` output format. Pull request #4613 by tnir 
    
    # 3.2.18 / 2021-05-25 
    
    ## Enhancements: 
    
      * Don't leave temporary directory around when building extensions to   improve build reproducibility. Pull request #4610 by baloo 
    
    # 3.2.17 / 2021-05-05 
    
    ## Enhancements: 
    
      * Only print month & year in deprecation messages. Pull request #3085 by   Schwad 
      * Make deprecate method support ruby3's keyword arguments. Pull request   #4558 by mame 
      * Update the default bindir on macOS. Pull request #4524 by nobu 
      * Prefer File.open instead of Kernel#open. Pull request #4529 by mame 
    
    ## Documentation: 
    
      * Fix usage messages to reflect the current POSIX-compatible behaviour.   
      Pull request #4551 by graywolf-at-work 
    
    # 3.2.16 / 2021-04-08 
    
    ## Bug fixes: 
    
      * Correctly handle symlinks. Pull request #2836 by voxik 
    
    # 3.2.15 / 2021-03-19 
    
    ## Enhancements: 
    
      * Prevent downgrades to untested rubygems versions. Pull request #4460 by   deivid-rodriguez 
    
    ## Bug fixes: 
    
      * Fix missing require breaking `gem cert`. Pull request #4464 by lukehinds 
    
    # 3.2.14 / 2021-03-08 
    
    ## Enhancements: 
    
      * Less wrapping of network errors. Pull request #4064 by deivid-rodriguez 
    
    ## Bug fixes: 
    
      * Revert addition of support for `musl` variants to restore graceful   fallback on Alpine. Pull request #4434 by deivid-rodriguez 
    
    # 3.2.13 / 2021-03-03 
    
    ## Bug fixes: 
    
      * Support non-gnu libc linux platforms. Pull request #4082 by lloeki 
    
    # 3.2.12 / 2021-03-01 
    
    ## Bug fixes: 
    
      * Restore the ability to manually install extension gems. Pull request   #4384 by cfis 
    
    # 3.2.11 / 2021-02-17 
    
    ## Enhancements: 
    
      * Optionally fallback to IPv4 when IPv6 is unreachable. Pull request #2662   by sonalkr132 
    
    # 3.2.10 / 2021-02-15 
    
    ## Documentation: 
    
      * Add a `gem push` example to `gem help`. Pull request #4373 by   deivid-rodriguez 
      * Improve documentation for `required_ruby_version`. Pull request #4343 by   AlexWayfer 
    
    # 3.2.9 / 2021-02-08 
    
    ## Bug fixes: 
    
      * Fix error message when underscore selection can't find bundler. Pull   request #4363 by deivid-rodriguez 
      * Fix `Gem::Specification.stubs_for` returning wrong named specs. Pull   request #4356 by tompng 
      * Don't error out when activating a binstub unless necessary. Pull request   #4351 by deivid-rodriguez 
      * Fix `gem outdated` incorrectly handling platform specific gems. Pull   request #4248 by deivid-rodriguez 
    
    # 3.2.8 / 2021-02-02 
    
    ## Bug fixes: 
    
      * Fix `gem install` crashing on gemspec with nil required_ruby_version.   Pull request #4334 by pbernays 
    
    # 3.2.7 / 2021-01-26 
    
    ## Bug fixes: 
    
      * Generate plugin wrappers with relative requires. Pull request #4317 by   deivid-rodriguez 
    
    # 3.2.6 / 2021-01-18 
    
    ## Enhancements: 
    
      * Fix `Gem::Platform#inspect` showing duplicate information. Pull request   #4276 by deivid-rodriguez 
    
    ## Bug fixes: 
    
      * Swallow any system call error in `ensure_gem_subdirs` to support jruby   embedded paths. Pull request #4291 by kares 
      * Restore accepting custom make command with extra options as the `make`   env variable. Pull request #4271 by terceiro 
    
    # 3.2.5 / 2021-01-11 
    
    ## Bug fixes: 
    
      * Don't load more specs after the whole set of specs has been setup. Pull   request #4262 by deivid-rodriguez 
      * Fix broken `bundler` executable after `gem update --system`. Pull   request #4221 by deivid-rodriguez 
    
    # 3.2.4 / 2020-12-31 
    
    ## Enhancements: 
    
      * Use a CHANGELOG in markdown for rubygems. Pull request #4168 by   deivid-rodriguez 
      * Never spawn subshells when building extensions. Pull request #4190 by   deivid-rodriguez 
    
    ## Bug fixes: 
    
      * Fix fallback to the old index and installation from it not working. Pull   request #4213 by deivid-rodriguez 
      * Fix installing from source on truffleruby. Pull request #4201 by   deivid-rodriguez 
    
    
    ------------------------------------------------------------------------------ 
    
    RubyGems installed the following executables: 
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/gem 
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/bundle 
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/bundler 
    
    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
    
    切换镜像站点:
    bobo@bobodeMacBook-Pro ~ % gem sources -l 
    *** CURRENT SOURCES *** 
    
    https://rubygems.org/ 
    bobo@bobodeMacBook-Pro ~ % gem sources --remove https://rubygems.org/ 
    https://rubygems.org/ removed from sources 
    bobo@bobodeMacBook-Pro ~ % gem sources -l                             
    *** CURRENT SOURCES *** 
    
    bobo@bobodeMacBook-Pro ~ % gem sources --add https://gems.ruby-china.com/ 
    https://gems.ruby-china.com/ added to sources 
    bobo@bobodeMacBook-Pro ~ % gem sources -l 
    *** CURRENT SOURCES *** 
    
    https://gems.ruby-china.com/
    

    4. 通过 ruby 安装 cocopods

    bobo@bobodeMacBook-Pro ~ % sudo gem install -n /usr/local/bin cocoapods 
    Password: 
    Fetching nanaimo-0.3.0.gem 
    Fetching colored2-3.1.2.gem 
    Fetching claide-1.0.3.gem 
    Fetching atomos-0.1.3.gem 
    Fetching xcodeproj-1.19.0.gem 
    Fetching ruby-macho-1.4.0.gem 
    Fetching CFPropertyList-3.0.3.gem 
    Fetching nap-1.1.0.gem 
    Fetching molinillo-0.6.6.gem 
    Fetching gh_inspector-1.1.3.gem 
    Fetching fourflusher-2.3.1.gem 
    Fetching escape-0.0.4.gem 
    Fetching cocoapods-try-1.2.0.gem 
    Fetching netrc-0.11.0.gem 
    Fetching cocoapods-trunk-1.5.0.gem 
    Fetching cocoapods-search-1.0.0.gem 
    Fetching cocoapods-plugins-1.0.0.gem 
    Fetching cocoapods-downloader-1.4.0.gem 
    Fetching cocoapods-deintegrate-1.0.4.gem 
    Fetching ffi-1.15.1.gem 
    Fetching ethon-0.14.0.gem 
    Fetching typhoeus-1.4.0.gem 
    Fetching public_suffix-4.0.6.gem 
    Fetching fuzzy_match-2.0.4.gem 
    Fetching concurrent-ruby-1.1.8.gem 
    Fetching httpclient-2.8.3.gem 
    Fetching algoliasearch-1.27.5.gem 
    Fetching addressable-2.7.0.gem 
    Fetching thread_safe-0.3.6.gem 
    Fetching tzinfo-1.2.9.gem 
    Fetching i18n-1.8.10.gem 
    Fetching activesupport-5.2.6.gem 
    Fetching cocoapods-1.10.1.gem 
    Fetching cocoapods-core-1.10.1.gem 
    Successfully installed nanaimo-0.3.0 
    Successfully installed colored2-3.1.2 
    Successfully installed claide-1.0.3 
    Successfully installed CFPropertyList-3.0.3 
    Successfully installed atomos-0.1.3 
    Successfully installed xcodeproj-1.19.0 
    Successfully installed ruby-macho-1.4.0 
    Successfully installed nap-1.1.0 
    Successfully installed molinillo-0.6.6 
    Successfully installed gh_inspector-1.1.3 
    Successfully installed fourflusher-2.3.1 
    Successfully installed escape-0.0.4 
    Successfully installed cocoapods-try-1.2.0 
    Successfully installed netrc-0.11.0 
    Successfully installed cocoapods-trunk-1.5.0 
    Successfully installed cocoapods-search-1.0.0 
    Successfully installed cocoapods-plugins-1.0.0 
    Successfully installed cocoapods-downloader-1.4.0 
    Successfully installed cocoapods-deintegrate-1.0.4 
    Building native extensions. This could take a while... 
    Successfully installed ffi-1.15.1 
    Successfully installed ethon-0.14.0 
    Successfully installed typhoeus-1.4.0 
    Successfully installed public_suffix-4.0.6 
    Successfully installed fuzzy_match-2.0.4 
    Successfully installed concurrent-ruby-1.1.8 
    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 
    Successfully installed addressable-2.7.0 
    Successfully installed thread_safe-0.3.6 
    Successfully installed tzinfo-1.2.9 
    Successfully installed i18n-1.8.10 
    Successfully installed activesupport-5.2.6 
    Successfully installed cocoapods-core-1.10.1 
    Successfully installed cocoapods-1.10.1 
    Parsing documentation for nanaimo-0.3.0 
    Installing ri documentation for nanaimo-0.3.0 
    Parsing documentation for colored2-3.1.2 
    Installing ri documentation for colored2-3.1.2 
    Parsing documentation for claide-1.0.3 
    Installing ri documentation for claide-1.0.3 
    Parsing documentation for CFPropertyList-3.0.3 
    Installing ri documentation for CFPropertyList-3.0.3 
    Parsing documentation for atomos-0.1.3 
    Installing ri documentation for atomos-0.1.3 
    Parsing documentation for xcodeproj-1.19.0 
    Installing ri documentation for xcodeproj-1.19.0 
    Parsing documentation for ruby-macho-1.4.0 
    Installing ri documentation for ruby-macho-1.4.0 
    Parsing documentation for nap-1.1.0 
    Installing ri documentation for nap-1.1.0 
    Parsing documentation for molinillo-0.6.6 
    Installing ri documentation for molinillo-0.6.6 
    Parsing documentation for gh_inspector-1.1.3 
    Installing ri documentation for gh_inspector-1.1.3 
    Parsing documentation for fourflusher-2.3.1 
    Installing ri documentation for fourflusher-2.3.1 
    Parsing documentation for escape-0.0.4 
    Installing ri documentation for escape-0.0.4 
    Parsing documentation for cocoapods-try-1.2.0 
    Installing ri documentation for cocoapods-try-1.2.0 
    Parsing documentation for netrc-0.11.0 
    Installing ri documentation for netrc-0.11.0 
    Parsing documentation for cocoapods-trunk-1.5.0 
    Installing ri documentation for cocoapods-trunk-1.5.0 
    Parsing documentation for cocoapods-search-1.0.0 
    Installing ri documentation for cocoapods-search-1.0.0 
    Parsing documentation for cocoapods-plugins-1.0.0 
    Installing ri documentation for cocoapods-plugins-1.0.0 
    Parsing documentation for cocoapods-downloader-1.4.0 
    Installing ri documentation for cocoapods-downloader-1.4.0 
    Parsing documentation for cocoapods-deintegrate-1.0.4 
    Installing ri documentation for cocoapods-deintegrate-1.0.4 
    Parsing documentation for ffi-1.15.1 
    Installing ri documentation for ffi-1.15.1 
    Parsing documentation for ethon-0.14.0 
    Installing ri documentation for ethon-0.14.0 
    Parsing documentation for typhoeus-1.4.0 
    Installing ri documentation for typhoeus-1.4.0 
    Parsing documentation for public_suffix-4.0.6 
    Installing ri documentation for public_suffix-4.0.6 
    Parsing documentation for fuzzy_match-2.0.4 
    Installing ri documentation for fuzzy_match-2.0.4 
    Parsing documentation for concurrent-ruby-1.1.8 
    Installing ri documentation for concurrent-ruby-1.1.8 
    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 addressable-2.7.0
    Installing ri documentation for addressable-2.7.0 
    Parsing documentation for thread_safe-0.3.6 
    Installing ri documentation for thread_safe-0.3.6 
    Parsing documentation for tzinfo-1.2.9 
    Installing ri documentation for tzinfo-1.2.9 
    Parsing documentation for i18n-1.8.10 
    Installing ri documentation for i18n-1.8.10 
    Parsing documentation for activesupport-5.2.6 
    Installing ri documentation for activesupport-5.2.6 
    Parsing documentation for cocoapods-core-1.10.1 
    Installing ri documentation for cocoapods-core-1.10.1 
    Parsing documentation for cocoapods-1.10.1 
    Installing ri documentation for cocoapods-1.10.1 
    Done installing documentation for nanaimo, colored2, claide, CFPropertyList, atomos, xcodeproj, ruby-macho, nap, molinillo, gh_inspector, fourflusher, escape, cocoapods-try, netrc, cocoapods-trunk, cocoapods-search, cocoapods-plugins, cocoapods-downloader, cocoapods-deintegrate, ffi, ethon, typhoeus, public_suffix, fuzzy_match, concurrent-ruby, httpclient, algoliasearch, addressable, thread_safe, tzinfo, i18n, activesupport, cocoapods-core, cocoapods after 17 seconds 
    34 gems installed 
    bobo@bobodeMacBook-Pro ~ % pod --version 
    1.10.1 
    bobo@bobodeMacBook-Pro ~ % pod setup 
    Setup completed 
    bobo@bobodeMacBook-Pro ~ %
    
    查看版本:pod --version
    bobo@bobodeMacBook-Pro ~ % pod --version 1.10.1
    
    安装本地库,设置一下:pod setup
    bobo@bobodeMacBook-Pro ~ % pod setup Setup completed
    
    最后进入项目根目录下,执行: pod install
    bobo@bobodeMacBook-Pro ~ % cd juyee/GitProjects/ios/eyanghu-ios  
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install 
    Analyzing dependencies 
    Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/` 
    Downloading dependencies 
    Installing AFNetworking (3.1.0) 
    Installing BaiduMapKit (3.4.4) 
    
    [!] Error installing BaiduMapKit 
    [!] /usr/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49425-5llrb4 --template= --single-branch --depth 1 --branch 3.4.4 
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49425-5llrb4'... 
    fatal: unable to access 'https://github.com/BaiduLBS/BaiduMapKit.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443  
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. 
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    
    刷新DNS 后,在执行
    bobo@bobodeMacBook-Pro eyanghu-ios % sudo killall -HUP mDNSResponder 
    Password: 
    bobo@bobodeMacBook-Pro eyanghu-ios % inconfig /flushdns 
    zsh: command not found: inconfig 
    bobo@bobodeMacBook-Pro eyanghu-ios % ipconfig /flushdns 
    usage: ipconfig <command> <args> where <command> is one of waitall, getifaddr, ifcount, getoption, getpacket, getv6packet, getra, set, setverbose 
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install                     
    Analyzing dependencies 
    Downloading dependencies 
    Generating Pods project 
    Integrating client project 
    Pod installation complete! There are 18 dependencies from the Podfile and 19 total pods installed. 
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice. 
    bobo@bobodeMacBook-Pro eyanghu-ios % ls -al 
    
    如出现上面下载第三方包失败的情况,网络原因,网络原因,网络原因。。请重新执行 pod install

    如下是全面执行安装的全过程

    Last login: Thu Jun  3 09:13:40 on ttys000
    bobo@bobodeMacBook-Pro ~ % brew install gnupg
    Updating Homebrew...
    ==> Homebrew has enabled anonymous aggregate formula and cask analytics.
    Read the analytics documentation (and how to opt-out) here:
      https://docs.brew.sh/Analytics
    No analytics have been recorded yet (nor will be during this `brew` run).
    
    ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
      https://github.com/Homebrew/brew#donations
    Error: Failed to link all completions, docs and manpages:
      Permission denied @ dir_s_mkdir - /usr/local/share/man/man1
    Error: The following directories are not writable by your user:
    /usr/local/share/man
    /usr/local/share/man/man8
    
    You should change the ownership of these directories to your user.
      sudo chown -R $(whoami) /usr/local/share/man /usr/local/share/man/man8
    
    And make sure that your user has write permission.
      chmod u+w /usr/local/share/man /usr/local/share/man/man8
    bobo@bobodeMacBook-Pro ~ % brew install gnupg
    Error: The following directories are not writable by your user:
    /usr/local/share/man
    /usr/local/share/man/man8
    
    You should change the ownership of these directories to your user.
      sudo chown -R $(whoami) /usr/local/share/man /usr/local/share/man/man8
    
    And make sure that your user has write permission.
      chmod u+w /usr/local/share/man /usr/local/share/man/man8
    bobo@bobodeMacBook-Pro ~ % sudo chmod u+w /usr/local/share/man /usr/local/share/man/man8
    Password:
    bobo@bobodeMacBook-Pro ~ % brew install gnupg                                           
    Error: The following directories are not writable by your user:
    /usr/local/share/man
    /usr/local/share/man/man8
    
    You should change the ownership of these directories to your user.
      sudo chown -R $(whoami) /usr/local/share/man /usr/local/share/man/man8
    
    And make sure that your user has write permission.
      chmod u+w /usr/local/share/man /usr/local/share/man/man8
    bobo@bobodeMacBook-Pro ~ % sudo chmod 777 /usr/local/share/man /usr/local/share/man/man8
    bobo@bobodeMacBook-Pro ~ % brew install gnupg                                           
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gettext-0.21.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gmp-6.2.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/bdw-gc-8.0.4_2.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libffi-3.3_3.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/m4-1.4.18.big_sur.bottle.1.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libtool-2.4.6_3.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libunistring-0.9.10.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/pkg-config-0.29.2_3.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/readline-8.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/guile-3.0.7.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libidn2-2.3.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libtasn1-4.17.0.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/nettle-3.7.2.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/p11-kit-0.23.22.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/openssl%401.1-1.1.1k.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libevent-2.1.12.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/c-ares-1.17.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/jemalloc-5.2.1_1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libev-4.33.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/nghttp2-1.43.0.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/unbound-1.13.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gnutls-3.6.16.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libgpg-error-1.42.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libassuan-2.5.5.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libgcrypt-1.9.3.big_sur.bottle.1.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libksba-1.5.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/libusb-1.0.24.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/npth-1.6.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/pinentry-1.1.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/bottles/gnupg-2.3.1.big_sur.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Installing dependencies for gnupg: gettext, gmp, bdw-gc, libffi, m4, libtool, libunistring, pkg-config, readline, guile, libidn2, libtasn1, nettle, p11-kit, openssl@1.1, libevent, c-ares, jemalloc, libev, nghttp2, unbound, gnutls, libgpg-error, libassuan, libgcrypt, libksba, libusb, npth and pinentry
    ==> 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_2.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/bdw-gc/8.0.4_2: 69 files, 1.6MB
    ==> Installing gnupg dependency: libffi
    ==> Pouring libffi-3.3_3.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libffi/3.3_3: 17 files, 540.5KB
    ==> Installing gnupg dependency: m4
    ==> Pouring m4-1.4.18.big_sur.bottle.1.tar.gz
    🍺  /usr/local/Cellar/m4/1.4.18: 13 files, 672.3KB
    ==> Installing gnupg dependency: libtool
    ==> Pouring libtool-2.4.6_3.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libtool/2.4.6_3: 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.8KB
    ==> Installing gnupg dependency: readline
    ==> Pouring readline-8.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/readline/8.1: 48 files, 1.6MB
    ==> Installing gnupg dependency: guile
    ==> Pouring guile-3.0.7.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/guile/3.0.7: 838 files, 56.8MB
    ==> Installing gnupg dependency: libidn2
    ==> Pouring libidn2-2.3.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libidn2/2.3.1: 73 files, 812.3KB
    ==> Installing gnupg dependency: libtasn1
    ==> Pouring libtasn1-4.17.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libtasn1/4.17.0: 61 files, 640.2KB
    ==> Installing gnupg dependency: nettle
    ==> Pouring nettle-3.7.2.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/nettle/3.7.2: 89 files, 2.7MB
    ==> Installing gnupg dependency: p11-kit
    ==> Pouring p11-kit-0.23.22.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/p11-kit/0.23.22: 63 files, 3MB
    ==> Installing gnupg dependency: openssl@1.1
    ==> Pouring openssl@1.1-1.1.1k.big_sur.bottle.tar.gz
    ==> Regenerating CA certificate bundle from keychain, this may take a while...
    🍺  /usr/local/Cellar/openssl@1.1/1.1.1k: 8,071 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: c-ares
    ==> Pouring c-ares-1.17.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/c-ares/1.17.1: 85 files, 672.5KB
    ==> Installing gnupg dependency: jemalloc
    ==> Pouring jemalloc-5.2.1_1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/jemalloc/5.2.1_1: 16 files, 2MB
    ==> Installing gnupg dependency: libev
    ==> Pouring libev-4.33.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libev/4.33: 12 files, 484.0KB
    ==> Installing gnupg dependency: nghttp2
    ==> Pouring nghttp2-1.43.0.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/nghttp2/1.43.0: 24 files, 2.8MB
    ==> Installing gnupg dependency: unbound
    ==> Pouring unbound-1.13.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/unbound/1.13.1: 57 files, 5.4MB
    ==> Installing gnupg dependency: gnutls
    ==> Pouring gnutls-3.6.16.big_sur.bottle.tar.gz
    ==> Regenerating CA certificate bundle from keychain, this may take a while...
    🍺  /usr/local/Cellar/gnutls/3.6.16: 1,250 files, 11MB
    ==> Installing gnupg dependency: libgpg-error
    ==> Pouring libgpg-error-1.42.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libgpg-error/1.42: 27 files, 1MB
    ==> Installing gnupg dependency: libassuan
    ==> Pouring libassuan-2.5.5.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libassuan/2.5.5: 17 files, 505.4KB
    ==> Installing gnupg dependency: libgcrypt
    ==> Pouring libgcrypt-1.9.3.big_sur.bottle.1.tar.gz
    🍺  /usr/local/Cellar/libgcrypt/1.9.3: 23 files, 3.1MB
    ==> Installing gnupg dependency: libksba
    ==> Pouring libksba-1.5.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libksba/1.5.1: 18 files, 495.2KB
    ==> Installing gnupg dependency: libusb
    ==> Pouring libusb-1.0.24.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/libusb/1.0.24: 22 files, 516.7KB
    ==> Installing gnupg dependency: npth
    ==> Pouring npth-1.6.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/npth/1.6: 12 files, 134KB
    ==> Installing gnupg dependency: pinentry
    ==> Pouring pinentry-1.1.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/pinentry/1.1.1: 12 files, 261.5KB
    ==> Installing gnupg
    ==> Pouring gnupg-2.3.1.big_sur.bottle.tar.gz
    🍺  /usr/local/Cellar/gnupg/2.3.1: 148 files, 13.2MB
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc
    gpg: 目录‘/Users/bobo/.gnupg’已创建
    gpg: 钥匙箱‘/Users/bobo/.gnupg/pubring.kbx’已创建
    gpg: 签名建立于 六  1/16 02:46:22 2021 CST
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 无法检查签名:No public key
    GPG signature verification failed for '/Users/bobo/.rvm/archives/rvm-1.29.12.tgz' - 'http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.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
    
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 从公钥服务器接收失败:No route to host
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc
    gpg: 签名建立于 六  1/16 02:46:22 2021 CST
    gpg:               使用 RSA 密钥 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 无法检查签名:No public key
    GPG signature verification failed for '/Users/bobo/.rvm/archives/rvm-1.29.12.tgz' - 'http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.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
    
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 从公钥服务器接收失败:No route to host
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
    gpg: 从公钥服务器接收失败:No route to host
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3                        
    gpg: 从公钥服务器接收失败:No route to host
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://ipv4.pool.sks-keyservers.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
    gpg: /Users/bobo/.gnupg/trustdb.gpg:建立了信任度数据库
    gpg: 密钥 3804BB82D39DC0E3:公钥 “Michal Papis (RVM signing) <mpapis@gmail.com>” 已导入
    gpg: 处理的总数:1
    gpg:               已导入:1
    bobo@bobodeMacBook-Pro ~ % gpg --keyserver hkp://ipv4.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
    bobo@bobodeMacBook-Pro ~ % \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.12.tar.gz
    Downloading http://qiniu.forqian.cn/blue_dream_tools/my_rvm_installer/1.29.12.tar.gz.asc
    gpg: 签名建立于 六  1/16 02:46:22 2021 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/bobo/.rvm/archives/rvm-1.29.12.tgz'
    Installing RVM to /Users/bobo/.rvm/
        Adding rvm PATH line to /Users/bobo/.profile /Users/bobo/.mkshrc /Users/bobo/.bashrc /Users/bobo/.zshrc.
        Adding rvm loading line to /Users/bobo/.profile /Users/bobo/.bash_profile /Users/bobo/.zlogin.
    Installation of RVM in /Users/bobo/.rvm/ is almost complete:
    
      * To start using RVM you need to run `source /Users/bobo/.rvm/scripts/rvm`
        in all your open shell windows, in rare cases you need to reopen all shell windows.
    /Users/bobo/.zshrc:1:export PATH=/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    /Users/bobo/.bash_profile:1:export PATH=/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    
      * WARNING: Above files contains PATH= with no $PATH inside, this can break RVM,
        for details check https://github.com/rvm/rvm/issues/1351#issuecomment-10939525
        to avoid this warning prepend $PATH
    
    Thanks for installing RVM 🙏
    Please consider donating to our open collective to help us maintain RVM.
    
    👉  Donate: https://opencollective.com/rvm/donate
    
    
    bobo@bobodeMacBook-Pro ~ % source /Users/bobo/.rvm/scripts/rvm
    bobo@bobodeMacBook-Pro ~ % sudo vim ~/.zshrc 
    Password:
    bobo@bobodeMacBook-Pro ~ % sudo vim ~/.bash_profile 
    bobo@bobodeMacBook-Pro ~ % rvm -v
    rvm 1.29.12 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io]
    bobo@bobodeMacBook-Pro ~ % rvm list known
    # MRI Rubies
    [ruby-]1.8.6[-p420]
    [ruby-]1.8.7[-head] # security released on head
    [ruby-]1.9.1[-p431]
    [ruby-]1.9.2[-p330]
    [ruby-]1.9.3[-p551]
    [ruby-]2.0.0[-p648]
    [ruby-]2.1[.10]
    [ruby-]2.2[.10]
    [ruby-]2.3[.8]
    [ruby-]2.4[.10]
    [ruby-]2.5[.8]
    [ruby-]2.6[.6]
    [ruby-]2.7[.2]
    [ruby-]3[.0.0]
    ruby-head
    
    # for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2
    
    # JRuby
    jruby-1.6[.8]
    jruby-1.7[.27]
    jruby-9.1[.17.0]
    jruby[-9.2.14.0]
    jruby-head
    
    # Rubinius
    rbx-1[.4.3]
    rbx-2.3[.0]
    rbx-2.4[.1]
    rbx-2[.5.8]
    rbx-3[.107]
    rbx-4[.20]
    rbx-5[.0]
    rbx-head
    
    # TruffleRuby
    truffleruby[-20.3.0]
    
    # Opal
    opal
    
    # Minimalistic ruby implementation - ISO 30170:2012
    mruby-1.0.0
    mruby-1.1.0
    mruby-1.2.0
    mruby-1.3.0
    mruby-1[.4.1]
    mruby-2.0.1
    mruby-2[.1.1]
    mruby[-head]
    
    # Ruby Enterprise Edition
    ree-1.8.6
    ree[-1.8.7][-2012.02]
    
    # Topaz
    topaz
    
    # MagLev
    maglev-1.0.0
    maglev-1.1[RC1]
    maglev[-1.2Alpha4]
    maglev-head
    
    # Mac OS X Snow Leopard Or Newer
    macruby-0.10
    macruby-0.11
    macruby[-0.12]
    macruby-nightly
    macruby-head
    
    # IronRuby
    ironruby[-1.1.3]
    ironruby-head
    bobo@bobodeMacBook-Pro ~ % 
    bobo@bobodeMacBook-Pro ~ % rvm install 3.0.0
    Searching for binary rubies, this might take some time.
    No binary rubies available for: osx/11.4/x86_64/ruby-3.0.0.
    Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
    Checking requirements for osx.
    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/bobo/.rvm/rubies/ruby-3.0.0, this may take a while depending on your cpu(s)...
    ruby-3.0.0 - #downloading ruby-3.0.0, 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 18.6M  100 18.6M    0     0  2065k      0  0:00:09  0:00:09 --:--:-- 2863k
    ruby-3.0.0 - #extracting ruby-3.0.0 to /Users/bobo/.rvm/src/ruby-3.0.0 - please wait
    ruby-3.0.0 - #configuring - please wait
    ruby-3.0.0 - #post-configuration - please wait
    ruby-3.0.0 - #compiling - please wait
    ruby-3.0.0 - #installing - please wait
    ruby-3.0.0 - #making binaries executable - please wait
    Installed rubygems 3.2.3 is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation.
    ruby-3.0.0 - #gemset created /Users/bobo/.rvm/gems/ruby-3.0.0@global
    ruby-3.0.0 - #importing gemset /Users/bobo/.rvm/gemsets/global.gems - please wait
    ruby-3.0.0 - #generating global wrappers - please wait
    ruby-3.0.0 - #gemset created /Users/bobo/.rvm/gems/ruby-3.0.0
    ruby-3.0.0 - #importing gemsetfile /Users/bobo/.rvm/gemsets/default.gems evaluated to empty gem list
    ruby-3.0.0 - #generating default wrappers - please wait
    ruby-3.0.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
    Install of ruby-3.0.0 - #complete 
    Ruby was built without documentation, to build it run: rvm docs generate-ri
    bobo@bobodeMacBook-Pro ~ % ruby -v
    ruby 3.0.0p0 (2020-12-25 revision 95aff21468) [x86_64-darwin20]
    bobo@bobodeMacBook-Pro ~ % rvm use 3.0.0 --default
    Using /Users/bobo/.rvm/gems/ruby-3.0.0
    bobo@bobodeMacBook-Pro ~ % sudo gem update --system 
    Password:
    Updating rubygems-update
    Fetching rubygems-update-3.2.19.gem
    Successfully installed rubygems-update-3.2.19
    Parsing documentation for rubygems-update-3.2.19
    Installing ri documentation for rubygems-update-3.2.19
    Installing darkfish documentation for rubygems-update-3.2.19
    Done installing documentation for rubygems-update after 159 seconds
    Parsing documentation for rubygems-update-3.2.19
    Done installing documentation for rubygems-update after 0 seconds
    Installing RubyGems 3.2.19
      Successfully built RubyGem
      Name: bundler
      Version: 2.2.19
      File: bundler-2.2.19.gem
    Bundler 2.2.19 installed
    RubyGems 3.2.19 installed
    Regenerating binstubs
    Regenerating plugins
    Parsing documentation for rubygems-3.2.19
    Installing ri documentation for rubygems-3.2.19
    
    # 3.2.19 / 2021-05-31
    
    ## Enhancements:
    
    * Fix `gem help build` output format. Pull request #4613 by tnir
    
    # 3.2.18 / 2021-05-25
    
    ## Enhancements:
    
    * Don't leave temporary directory around when building extensions to
      improve build reproducibility. Pull request #4610 by baloo
    
    # 3.2.17 / 2021-05-05
    
    ## Enhancements:
    
    * Only print month & year in deprecation messages. Pull request #3085 by
      Schwad
    * Make deprecate method support ruby3's keyword arguments. Pull request
      #4558 by mame
    * Update the default bindir on macOS. Pull request #4524 by nobu
    * Prefer File.open instead of Kernel#open. Pull request #4529 by mame
    
    ## Documentation:
    
    * Fix usage messages to reflect the current POSIX-compatible behaviour.
      Pull request #4551 by graywolf-at-work
    
    # 3.2.16 / 2021-04-08
    
    ## Bug fixes:
    
    * Correctly handle symlinks. Pull request #2836 by voxik
    
    # 3.2.15 / 2021-03-19
    
    ## Enhancements:
    
    * Prevent downgrades to untested rubygems versions. Pull request #4460 by
      deivid-rodriguez
    
    ## Bug fixes:
    
    * Fix missing require breaking `gem cert`. Pull request #4464 by lukehinds
    
    # 3.2.14 / 2021-03-08
    
    ## Enhancements:
    
    * Less wrapping of network errors. Pull request #4064 by deivid-rodriguez
    
    ## Bug fixes:
    
    * Revert addition of support for `musl` variants to restore graceful
      fallback on Alpine. Pull request #4434 by deivid-rodriguez
    
    # 3.2.13 / 2021-03-03
    
    ## Bug fixes:
    
    * Support non-gnu libc linux platforms. Pull request #4082 by lloeki
    
    # 3.2.12 / 2021-03-01
    
    ## Bug fixes:
    
    * Restore the ability to manually install extension gems. Pull request
      #4384 by cfis
    
    # 3.2.11 / 2021-02-17
    
    ## Enhancements:
    
    * Optionally fallback to IPv4 when IPv6 is unreachable. Pull request #2662
      by sonalkr132
    
    # 3.2.10 / 2021-02-15
    
    ## Documentation:
    
    * Add a `gem push` example to `gem help`. Pull request #4373 by
      deivid-rodriguez
    * Improve documentation for `required_ruby_version`. Pull request #4343 by
      AlexWayfer
    
    # 3.2.9 / 2021-02-08
    
    ## Bug fixes:
    
    * Fix error message when underscore selection can't find bundler. Pull
      request #4363 by deivid-rodriguez
    * Fix `Gem::Specification.stubs_for` returning wrong named specs. Pull
      request #4356 by tompng
    * Don't error out when activating a binstub unless necessary. Pull request
      #4351 by deivid-rodriguez
    * Fix `gem outdated` incorrectly handling platform specific gems. Pull
      request #4248 by deivid-rodriguez
    
    # 3.2.8 / 2021-02-02
    
    ## Bug fixes:
    
    * Fix `gem install` crashing on gemspec with nil required_ruby_version.
      Pull request #4334 by pbernays
    
    # 3.2.7 / 2021-01-26
    
    ## Bug fixes:
    
    * Generate plugin wrappers with relative requires. Pull request #4317 by
      deivid-rodriguez
    
    # 3.2.6 / 2021-01-18
    
    ## Enhancements:
    
    * Fix `Gem::Platform#inspect` showing duplicate information. Pull request
      #4276 by deivid-rodriguez
    
    ## Bug fixes:
    
    * Swallow any system call error in `ensure_gem_subdirs` to support jruby
      embedded paths. Pull request #4291 by kares
    * Restore accepting custom make command with extra options as the `make`
      env variable. Pull request #4271 by terceiro
    
    # 3.2.5 / 2021-01-11
    
    ## Bug fixes:
    
    * Don't load more specs after the whole set of specs has been setup. Pull
      request #4262 by deivid-rodriguez
    * Fix broken `bundler` executable after `gem update --system`. Pull
      request #4221 by deivid-rodriguez
    
    # 3.2.4 / 2020-12-31
    
    ## Enhancements:
    
    * Use a CHANGELOG in markdown for rubygems. Pull request #4168 by
      deivid-rodriguez
    * Never spawn subshells when building extensions. Pull request #4190 by
      deivid-rodriguez
    
    ## Bug fixes:
    
    * Fix fallback to the old index and installation from it not working. Pull
      request #4213 by deivid-rodriguez
    * Fix installing from source on truffleruby. Pull request #4201 by
      deivid-rodriguez
    
    
    ------------------------------------------------------------------------------
    
    RubyGems installed the following executables:
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/gem
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/bundle
        /Users/bobo/.rvm/rubies/ruby-3.0.0/bin/bundler
    
    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
    bobo@bobodeMacBook-Pro ~ % gem sources -l
    *** CURRENT SOURCES ***
    
    https://rubygems.org/
    bobo@bobodeMacBook-Pro ~ % gem sources --remove https://rubygems.org/
    https://rubygems.org/ removed from sources
    bobo@bobodeMacBook-Pro ~ % gem sources -l                            
    *** CURRENT SOURCES ***
    
    bobo@bobodeMacBook-Pro ~ % gem sources --add https://gems.ruby-china.com/
    https://gems.ruby-china.com/ added to sources
    bobo@bobodeMacBook-Pro ~ % gem sources -l
    *** CURRENT SOURCES ***
    
    https://gems.ruby-china.com/
    bobo@bobodeMacBook-Pro ~ % sudo gem install -n /usr/local/bin cocoapods
    Password:
    Fetching nanaimo-0.3.0.gem
    Fetching colored2-3.1.2.gem
    Fetching claide-1.0.3.gem
    Fetching atomos-0.1.3.gem
    Fetching xcodeproj-1.19.0.gem
    Fetching ruby-macho-1.4.0.gem
    Fetching CFPropertyList-3.0.3.gem
    Fetching nap-1.1.0.gem
    Fetching molinillo-0.6.6.gem
    Fetching gh_inspector-1.1.3.gem
    Fetching fourflusher-2.3.1.gem
    Fetching escape-0.0.4.gem
    Fetching cocoapods-try-1.2.0.gem
    Fetching netrc-0.11.0.gem
    Fetching cocoapods-trunk-1.5.0.gem
    Fetching cocoapods-search-1.0.0.gem
    Fetching cocoapods-plugins-1.0.0.gem
    Fetching cocoapods-downloader-1.4.0.gem
    Fetching cocoapods-deintegrate-1.0.4.gem
    Fetching ffi-1.15.1.gem
    Fetching ethon-0.14.0.gem
    Fetching typhoeus-1.4.0.gem
    Fetching public_suffix-4.0.6.gem
    Fetching fuzzy_match-2.0.4.gem
    Fetching concurrent-ruby-1.1.8.gem
    Fetching httpclient-2.8.3.gem
    Fetching algoliasearch-1.27.5.gem
    Fetching addressable-2.7.0.gem
    Fetching thread_safe-0.3.6.gem
    Fetching tzinfo-1.2.9.gem
    Fetching i18n-1.8.10.gem
    Fetching activesupport-5.2.6.gem
    Fetching cocoapods-1.10.1.gem
    Fetching cocoapods-core-1.10.1.gem
    Successfully installed nanaimo-0.3.0
    Successfully installed colored2-3.1.2
    Successfully installed claide-1.0.3
    Successfully installed CFPropertyList-3.0.3
    Successfully installed atomos-0.1.3
    Successfully installed xcodeproj-1.19.0
    Successfully installed ruby-macho-1.4.0
    Successfully installed nap-1.1.0
    Successfully installed molinillo-0.6.6
    Successfully installed gh_inspector-1.1.3
    Successfully installed fourflusher-2.3.1
    Successfully installed escape-0.0.4
    Successfully installed cocoapods-try-1.2.0
    Successfully installed netrc-0.11.0
    Successfully installed cocoapods-trunk-1.5.0
    Successfully installed cocoapods-search-1.0.0
    Successfully installed cocoapods-plugins-1.0.0
    Successfully installed cocoapods-downloader-1.4.0
    Successfully installed cocoapods-deintegrate-1.0.4
    Building native extensions. This could take a while...
    Successfully installed ffi-1.15.1
    Successfully installed ethon-0.14.0
    Successfully installed typhoeus-1.4.0
    Successfully installed public_suffix-4.0.6
    Successfully installed fuzzy_match-2.0.4
    Successfully installed concurrent-ruby-1.1.8
    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
    Successfully installed addressable-2.7.0
    Successfully installed thread_safe-0.3.6
    Successfully installed tzinfo-1.2.9
    Successfully installed i18n-1.8.10
    Successfully installed activesupport-5.2.6
    Successfully installed cocoapods-core-1.10.1
    Successfully installed cocoapods-1.10.1
    Parsing documentation for nanaimo-0.3.0
    Installing ri documentation for nanaimo-0.3.0
    Parsing documentation for colored2-3.1.2
    Installing ri documentation for colored2-3.1.2
    Parsing documentation for claide-1.0.3
    Installing ri documentation for claide-1.0.3
    Parsing documentation for CFPropertyList-3.0.3
    Installing ri documentation for CFPropertyList-3.0.3
    Parsing documentation for atomos-0.1.3
    Installing ri documentation for atomos-0.1.3
    Parsing documentation for xcodeproj-1.19.0
    Installing ri documentation for xcodeproj-1.19.0
    Parsing documentation for ruby-macho-1.4.0
    Installing ri documentation for ruby-macho-1.4.0
    Parsing documentation for nap-1.1.0
    Installing ri documentation for nap-1.1.0
    Parsing documentation for molinillo-0.6.6
    Installing ri documentation for molinillo-0.6.6
    Parsing documentation for gh_inspector-1.1.3
    Installing ri documentation for gh_inspector-1.1.3
    Parsing documentation for fourflusher-2.3.1
    Installing ri documentation for fourflusher-2.3.1
    Parsing documentation for escape-0.0.4
    Installing ri documentation for escape-0.0.4
    Parsing documentation for cocoapods-try-1.2.0
    Installing ri documentation for cocoapods-try-1.2.0
    Parsing documentation for netrc-0.11.0
    Installing ri documentation for netrc-0.11.0
    Parsing documentation for cocoapods-trunk-1.5.0
    Installing ri documentation for cocoapods-trunk-1.5.0
    Parsing documentation for cocoapods-search-1.0.0
    Installing ri documentation for cocoapods-search-1.0.0
    Parsing documentation for cocoapods-plugins-1.0.0
    Installing ri documentation for cocoapods-plugins-1.0.0
    Parsing documentation for cocoapods-downloader-1.4.0
    Installing ri documentation for cocoapods-downloader-1.4.0
    Parsing documentation for cocoapods-deintegrate-1.0.4
    Installing ri documentation for cocoapods-deintegrate-1.0.4
    Parsing documentation for ffi-1.15.1
    Installing ri documentation for ffi-1.15.1
    Parsing documentation for ethon-0.14.0
    Installing ri documentation for ethon-0.14.0
    Parsing documentation for typhoeus-1.4.0
    Installing ri documentation for typhoeus-1.4.0
    Parsing documentation for public_suffix-4.0.6
    Installing ri documentation for public_suffix-4.0.6
    Parsing documentation for fuzzy_match-2.0.4
    Installing ri documentation for fuzzy_match-2.0.4
    Parsing documentation for concurrent-ruby-1.1.8
    Installing ri documentation for concurrent-ruby-1.1.8
    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 addressable-2.7.0
    Installing ri documentation for addressable-2.7.0
    Parsing documentation for thread_safe-0.3.6
    Installing ri documentation for thread_safe-0.3.6
    Parsing documentation for tzinfo-1.2.9
    Installing ri documentation for tzinfo-1.2.9
    Parsing documentation for i18n-1.8.10
    Installing ri documentation for i18n-1.8.10
    Parsing documentation for activesupport-5.2.6
    Installing ri documentation for activesupport-5.2.6
    Parsing documentation for cocoapods-core-1.10.1
    Installing ri documentation for cocoapods-core-1.10.1
    Parsing documentation for cocoapods-1.10.1
    Installing ri documentation for cocoapods-1.10.1
    Done installing documentation for nanaimo, colored2, claide, CFPropertyList, atomos, xcodeproj, ruby-macho, nap, molinillo, gh_inspector, fourflusher, escape, cocoapods-try, netrc, cocoapods-trunk, cocoapods-search, cocoapods-plugins, cocoapods-downloader, cocoapods-deintegrate, ffi, ethon, typhoeus, public_suffix, fuzzy_match, concurrent-ruby, httpclient, algoliasearch, addressable, thread_safe, tzinfo, i18n, activesupport, cocoapods-core, cocoapods after 17 seconds
    34 gems installed
    bobo@bobodeMacBook-Pro ~ % pod --version
    1.10.1
    bobo@bobodeMacBook-Pro ~ % pod setup
    Setup completed
    bobo@bobodeMacBook-Pro ~ %
    bobo@bobodeMacBook-Pro ~ % cd juyee/GitProjects/ios/eyanghu-ios 
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/`
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    
    [!] Error installing BaiduMapKit
    [!] /usr/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49425-5llrb4 --template= --single-branch --depth 1 --branch 3.4.4
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49425-5llrb4'...
    fatal: unable to access 'https://github.com/BaiduLBS/BaiduMapKit.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    
    [!] Error installing BaiduMapKit
    [!] /usr/bin/git clone https://github.com/BaiduLBS/BaiduMapKit.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49508-wwdv0i --template= --single-branch --depth 1 --branch 3.4.4
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49508-wwdv0i'...
    fatal: unable to access 'https://github.com/BaiduLBS/BaiduMapKit.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    Installing Bugly (2.5.90)
    Installing CHWebView (2.5.0)
    Installing FCUUID (1.3.1)
    Installing FMDB (2.7.5)
    
    [!] Error installing FMDB
    [!] /usr/bin/git clone https://github.com/ccgus/fmdb.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49567-ez8871 --template= --single-branch --depth 1 --branch 2.7.5
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210603-49567-ez8871'...
    fatal: unable to access 'https://github.com/ccgus/fmdb.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    Installing Bugly (2.5.90)
    Installing CHWebView (2.5.0)
    Installing FCUUID (1.3.1)
    Installing FMDB (2.7.5)
    Installing IQKeyboardManager (6.5.6)
    
    [!] Error installing IQKeyboardManager
    [!] /usr/bin/git clone https://github.com/hackiftekhar/IQKeyboardManager.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49619-6fmymw --template= --single-branch --depth 1 --branch v6.5.6
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49619-6fmymw'...
    fatal: unable to access 'https://github.com/hackiftekhar/IQKeyboardManager.git/': Failed to connect to github.com port 443: Operation timed out
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    Installing Bugly (2.5.90)
    Installing CHWebView (2.5.0)
    Installing FCUUID (1.3.1)
    Installing FMDB (2.7.5)
    Installing IQKeyboardManager (6.5.6)
    
    [!] Error installing IQKeyboardManager
    [!] /usr/bin/git clone https://github.com/hackiftekhar/IQKeyboardManager.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49645-1u8duw --template= --single-branch --depth 1 --branch v6.5.6
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49645-1u8duw'...
    fatal: unable to access 'https://github.com/hackiftekhar/IQKeyboardManager.git/': Failed to connect to github.com port 443: Operation timed out
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    Installing Bugly (2.5.90)
    Installing CHWebView (2.5.0)
    Installing FCUUID (1.3.1)
    Installing FMDB (2.7.5)
    Installing IQKeyboardManager (6.5.6)
    Installing MJExtension (3.0.17)
    
    [!] Error installing MJExtension
    [!] /usr/bin/git clone https://github.com/CoderMJLee/MJExtension.git /var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49799-65m4c --template= --single-branch --depth 1 --branch 3.0.17
    
    Cloning into '/var/folders/5r/h939v9ns2pj6my88zrgxb4fc0000gn/T/d20210604-49799-65m4c'...
    fatal: unable to access 'https://github.com/CoderMJLee/MJExtension.git/': LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443 
    
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios %
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install
    Analyzing dependencies
    Downloading dependencies
    Installing AFNetworking (3.1.0)
    Installing BaiduMapKit (3.4.4)
    Installing Bugly (2.5.90)
    Installing CHWebView (2.5.0)
    Installing FCUUID (1.3.1)
    Installing FMDB (2.7.5)
    Installing IQKeyboardManager (6.5.6)
    Installing MJExtension (3.0.17)
    Installing MJRefresh (3.1.17)
    Installing MOFSPickerManager (3.0.0)
    Installing Masonry (1.1.0)
    Installing SDWebImage (4.0.0)
    Installing SQLCipher (4.4.3)
    Installing SSZipArchive (2.4.1)
    Installing SVProgressHUD (2.2.5)
    Installing TZImagePickerController (3.6.0)
    Installing UICKeyChainStore (2.1.2)
    Installing YTKNetwork (2.0.4)
    Installing YYKit (1.0.9)
    Generating Pods project
    Integrating client project
    
    [!] Please close any current Xcode sessions and use `eyanghu-iOS.xcworkspace` for this project from now on.
    Pod installation complete! There are 18 dependencies from the Podfile and 19 total pods installed.
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % sudo killall -HUP mDNSResponder
    Password:
    bobo@bobodeMacBook-Pro eyanghu-ios % inconfig /flushdns
    zsh: command not found: inconfig
    bobo@bobodeMacBook-Pro eyanghu-ios % ipconfig /flushdns
    usage: ipconfig <command> <args>
    where <command> is one of waitall, getifaddr, ifcount, getoption, getpacket, getv6packet, getra, set, setverbose
    bobo@bobodeMacBook-Pro eyanghu-ios % pod install                    
    Analyzing dependencies
    Downloading dependencies
    Generating Pods project
    Integrating client project
    Pod installation complete! There are 18 dependencies from the Podfile and 19 total pods installed.
    
    [!] Smart quotes were detected and ignored in your Podfile. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
    bobo@bobodeMacBook-Pro eyanghu-ios % ls -al 
    

    相关文章

      网友评论

          本文标题:安装cocopods详细步骤

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