【问题标题】:Trouble with new RubyMotion and Joybox新的 RubyMotion 和 Joybox 出现问题
【发布时间】:2014-02-13 00:38:50
【问题描述】:

是否有人在使用 Joybox 更新 ruby​​motion 时遇到问题?我今天早上刚刚更新了 ruby​​motion,我的应用立即崩溃了……这是我的错误。

Inheriting from Motion::Project::Command' has been deprecated, inherit fromMotion::Command' instead.

不确定这是否是它崩溃的原因......但我需要弄清楚这一点。我试过回滚版本,但找不到有效的版本。任何帮助将不胜感激。

【问题讨论】:

  • 我也遇到了同样的问题,今天早上安装了 Joybox,我的 RubyMotion 安装毁了,我什至无法重新安装。

标签: ruby rubygems rubymotion


【解决方案1】:

我最终删除了joybox gem,但是我的RubyMotion 在rake 上抛出了疯狂的错误。

我通过删除 ~/Library/RubyMotion/templates/joybox-*.rb 来修复它。

希望对您有所帮助。我不认为 Joybox 在最新的 RM 下是稳定的。

【讨论】:

  • 它实际上是符号链接而不是 .rb 文件,在模板目录中。还需要删除命令文件夹中的文件。 ~/Library/RubyMotion/命令
  • 仅供参考 - 它是 ~/Library/RubyMotion/template/joybox-*.rb ;) 不过还是谢谢!
【解决方案2】:

一个解决方案是发布here。恢复到 RM 2.20 :

sudo motion update --cache-version=2.20

然后在你的 Rakefile 中,替换:

$:.unshift("/Library/RubyMotion/lib")

通过

$:.unshift("/Library/RubyMotion2.20/lib")

最后,重新安装joybox gem:

sudo gem install joybox

一切都应该没问题。

【讨论】:

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