美文网首页
升级CocoaPods到最新版本

升级CocoaPods到最新版本

作者: 冰点雨 | 来源:发表于2020-04-21 20:10 被阅读0次

    查看版本 pod --version

    查看Ruby源地址 gem source -l

    appletekiimac:~ apple$ gem sources -l
    *** CURRENT SOURCES ***
    
    https://ruby.taobao.org/
    

    移除旧的ruby源

    appletekiimac:~ apple$ gem sources --remove https://ruby.taobao.org/
    https://ruby.taobao.org/ removed from sources
    

    添加新的ruby源gem sources -a https://gems.ruby-china.com/

    appletekiimac:~ apple$ gem sources -a https://gems.ruby-china.com/
    https://gems.ruby-china.com/ added to sources
    

    查看当前源

    appletekiimac:~ apple$ gem sources -l
    *** CURRENT SOURCES ***
    
    https://gems.ruby-china.com/
    

    至此,ruby源已经更新成功!

    升级pods

    运行命令sudo gem install cocoapods

    appletekiimac:~ apple$ sudo gem install cocoapods
    Password:
    Fetching: concurrent-ruby-1.1.6.gem (100%)
    Successfully installed concurrent-ruby-1.1.6
    Fetching: httpclient-2.8.3.gem (100%)
    Successfully installed httpclient-2.8.3
    Fetching: algoliasearch-1.27.1.gem (100%)
    Successfully installed algoliasearch-1.27.1
    Fetching: ffi-1.12.2.gem (100%)
    Building native extensions.  This could take a while...
    Successfully installed ffi-1.12.2
    Fetching: ethon-0.12.0.gem (100%)
    Successfully installed ethon-0.12.0
    Fetching: typhoeus-1.3.1.gem (100%)
    Successfully installed typhoeus-1.3.1
    Fetching: cocoapods-core-1.9.1.gem (100%)
    Successfully installed cocoapods-core-1.9.1
    Fetching: cocoapods-deintegrate-1.0.4.gem (100%)
    Successfully installed cocoapods-deintegrate-1.0.4
    Fetching: cocoapods-downloader-1.3.0.gem (100%)
    Successfully installed cocoapods-downloader-1.3.0
    Fetching: cocoapods-trunk-1.4.1.gem (100%)
    Successfully installed cocoapods-trunk-1.4.1
    Fetching: molinillo-0.6.6.gem (100%)
    Successfully installed molinillo-0.6.6
    Fetching: atomos-0.1.3.gem (100%)
    Successfully installed atomos-0.1.3
    Fetching: nanaimo-0.2.6.gem (100%)
    Successfully installed nanaimo-0.2.6
    Fetching: xcodeproj-1.15.0.gem (100%)
    Successfully installed xcodeproj-1.15.0
    Fetching: fourflusher-2.3.1.gem (100%)
    Successfully installed fourflusher-2.3.1
    Fetching: ruby-macho-1.4.0.gem (100%)
    Successfully installed ruby-macho-1.4.0
    Fetching: cocoapods-1.9.1.gem (100%)
    Successfully installed cocoapods-1.9.1
    Parsing documentation for concurrent-ruby-1.1.6
    Installing ri documentation for concurrent-ruby-1.1.6
    Parsing documentation for httpclient-2.8.3
    Installing ri documentation for httpclient-2.8.3
    Parsing documentation for algoliasearch-1.27.1
    Installing ri documentation for algoliasearch-1.27.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 cocoapods-deintegrate-1.0.4
    Installing ri documentation for cocoapods-deintegrate-1.0.4
    Parsing documentation for cocoapods-downloader-1.3.0
    Installing ri documentation for cocoapods-downloader-1.3.0
    Parsing documentation for cocoapods-trunk-1.4.1
    Installing ri documentation for cocoapods-trunk-1.4.1
    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 nanaimo-0.2.6
    Installing ri documentation for nanaimo-0.2.6
    Parsing documentation for xcodeproj-1.15.0
    Installing ri documentation for xcodeproj-1.15.0
    Parsing documentation for fourflusher-2.3.1
    Installing ri documentation for fourflusher-2.3.1
    Parsing documentation for ruby-macho-1.4.0
    Installing ri documentation for ruby-macho-1.4.0
    Parsing documentation for cocoapods-1.9.1
    Installing ri documentation for cocoapods-1.9.1
    Done installing documentation for concurrent-ruby, httpclient, algoliasearch, ffi, ethon, typhoeus, cocoapods-core, cocoapods-deintegrate, cocoapods-downloader, cocoapods-trunk, molinillo, atomos, nanaimo, xcodeproj, fourflusher, ruby-macho, cocoapods after 69 seconds
    17 gems installed
    
    

    安装完成后查看pod版本

    appletekiimac:~ apple$ pod --version
    1.9.1
    

    相关文章

      网友评论

          本文标题:升级CocoaPods到最新版本

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