美文网首页iOS 开发工具
cocoapods更新到最新版本

cocoapods更新到最新版本

作者: GitArtOS | 来源:发表于2020-03-25 11:26 被阅读0次

    1.rvm list known列出ruby可安装的版本信息

    2. 此处我安装的是2.6.3 (命令rvm install 2.6.3

    3.which pod找出以前的pod路径;

    /usr/local/bin/pod

    4. 移除旧pod,rm -rf /usr/local/bin/pod

    5. sudo gem install cocoapods安装;

    
    platojobs@PlatoJobsdeMacBook-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[.6]
    [ruby-]2.5[.5]
    [ruby-]2.6[.3]
    [ruby-]2.7[.0-preview1]
    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.7.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[.3]
    rbx-head
    
    # TruffleRuby
    truffleruby[-19.1.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[-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
    platojobs@PlatoJobsdeMacBook-Pro ~ % rvm install 2.6.3
    Already installed ruby-2.6.3.
    To reinstall use:
    
        rvm reinstall ruby-2.6.3
    
    platojobs@PlatoJobsdeMacBook-Pro ~ % which pod
    /usr/local/bin/pod
    platojobs@PlatoJobsdeMacBook-Pro ~ % rm -rf /usr/local/bin/pod
    platojobs@PlatoJobsdeMacBook-Pro ~ % sudo gem install cocoapods
    Password:
    Fetching ffi-1.12.2.gem
    Fetching ethon-0.12.0.gem
    Fetching typhoeus-1.3.1.gem
    Fetching cocoapods-core-1.9.1.gem
    Fetching xcodeproj-1.15.0.gem
    Fetching cocoapods-1.9.1.gem
    Building native extensions. This could take a while...
    Successfully installed ffi-1.12.2
    Successfully installed ethon-0.12.0
    Successfully installed typhoeus-1.3.1
    Successfully installed cocoapods-core-1.9.1
    Successfully installed xcodeproj-1.15.0
    Successfully installed cocoapods-1.9.1
    Parsing documentation for ffi-1.12.2
    Installing ri documentation for ffi-1.12.2
    Parsing documentation for ethon-0.12.0
    Installing ri documentation for ethon-0.12.0
    Parsing documentation for typhoeus-1.3.1
    Installing ri documentation for typhoeus-1.3.1
    Parsing documentation for cocoapods-core-1.9.1
    Installing ri documentation for cocoapods-core-1.9.1
    Parsing documentation for xcodeproj-1.15.0
    Installing ri documentation for xcodeproj-1.15.0
    Parsing documentation for cocoapods-1.9.1
    Installing ri documentation for cocoapods-1.9.1
    Done installing documentation for ffi, ethon, typhoeus, cocoapods-core, xcodeproj, cocoapods after 33 seconds
    6 gems installed
    platojobs@PlatoJobsdeMacBook-Pro ~ % pod --version
    1.9.1
    platojobs@PlatoJobsdeMacBook-Pro ~ % 
    
    

    相关文章

      网友评论

        本文标题:cocoapods更新到最新版本

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