【问题标题】:Can Not Update Xcodeproj Gem无法更新 Xcodeproj Gem
【发布时间】:2019-06-15 17:22:47
【问题描述】:

我正在尝试将 xcodeproj gem 更新到最新版本。

目前,我的版本是 1.5.6:

$xcodeproj --version
1.5.6

$ which xcodeproj
/Users/nicolasmiari/.rvm/gems/ruby-2.4.0/bin/xcodeproj

我尝试使用以下方式更新:

$ gem install xcodeproj
Successfully installed xcodeproj-1.7.0
Parsing documentation for xcodeproj-1.7.0
Done installing documentation for xcodeproj after 1 seconds
1 gem installed

...这似乎成功了,但xcodeproj --version 不断返回1.5.6

我根本不精通 Ruby 或 rvm,老实说,我现在无法深入研究。我只需要更新一个(不幸的是)使用 Cocoapods 的 Xcode 项目。

我错过了什么?


附录:如果我运行:

$ gem list

...我得到(除其他外):

xcodeproj (1.7.0, 1.5.6)

所以两个版本都安装了。我想我需要摆脱旧的......

【问题讨论】:

    标签: rubygems rvm xcodeproj


    【解决方案1】:

    好的,所以跟着this answer,我跑了:

    $ gem cleanup xcodeproj
    

    ...现在$ gem list 返回:

    xcodeproj (1.7.0)
    

    ...但是$ xcodeproj --version 仍然报告1.5.6

    重启了终端,现在它报告了最新版本。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多