美文网首页
CocoaPods最新的安装--收集

CocoaPods最新的安装--收集

作者: eryuxinling | 来源:发表于2017-05-03 14:34 被阅读29次

    CocoaPods最新安装示例及可能遇到的问题--2016(镜像不是淘宝的,而是https://gems.ruby-china.org/)
    CocoaPods最新安装示例--补充(镜像依然是淘宝,仅供参考--最终目的是解决安装过程中所遇到的问题)

    出现此问题时:
    [!] Unable to find a pod with name, author, summary, or description matching 'AFNetworking'
    上网搜索后得知要删除一个文件:终端输入
    rm ~/Library/Caches/CocoaPods/search_index.json
    然后再一次搜索AFNetworking
    pod search AFNetworking
    终端打印如下:
    Creating search index for spec repo 'master'.. Done!
    至此该问题解决!


    遇到此问题时:
    RVM version 1.29.1 (latest) is installed yet 1.27.0 (latest) is loaded.
    Please do one of the following:

    • 'rvm reload'
    • open a new shell
    • 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
    • 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.

    终端输入: rvm reload
    打印:RVM reloaded!
    终端输入: rvm -v
    打印:rvm 1.29.1 (latest) by Michal Papis, Piotr Kuczynski, Wayne E. Seguin [https://rvm.io/]
    终端输入: 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[.6]
    [ruby-]2.3[.3]
    [ruby-]2.4[.0]
    ruby-head

    安装ruby 2.3.0 这个你随意只要大于2.2就行
    rvm install 2.3.0
    终端输入: ruby -v
    ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]
    至此该问题解决!

    相关文章

      网友评论

          本文标题:CocoaPods最新的安装--收集

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