简体   繁体   English

OS X Mavericks上的Macruby

[英]Macruby on OS X Mavericks

I'm running OS X Mavericks and installed MacRuby last week in order to make a simple app in it. 我正在运行OS X Mavericks,并在上周安装了MacRuby,以便在其中制作一个简单的应用程序。 Anything I try to run in Xcode (even Hello World app or a downloaded example), I always get "Build Failed" and really similar errors to this: 我尝试在Xcode中运行的任何内容(甚至包括Hello World应用程序或下载的示例),我总是会收到“ Build Failed”(构建失败)和与此类似的错误:

在此处输入图片说明

I found in some forums that th Garbage Collection is really deprecated etc. but I could't find any solution. 我在一些论坛上发现垃圾回收确实过时了,等等,但是我找不到任何解决方案。 Therefore I would be very glad if someone has a solution for this. 因此,如果有人对此有解决方案,我将感到非常高兴。

And no, I can't just work in Objective-C since it's far too complicated for me and apps I'd make :) 不,我不能只在Objective-C中工作,因为它对我和我制作的应用程序来说太复杂了:)

Thank you! 谢谢!

MacRuby isn't currently compatible with 10.9, not just because of the garbage collector, but due to changes in the Objective-C runtime, LLVM, and Xcode. MacRuby当前不与10.9兼容,这不仅是由于垃圾收集器引起的,而且还因为Objective-C运行时,LLVM和Xcode的变化。 There is a thread (titled "Mavericks and Macruby") going on right now on the macruby-devel mailing list about these issues. 关于这些问题, 现在在macruby-devel邮件列表上有一个线程(标题为“ Mavericks and Macruby”)。 Joshua Ballanco's message especially sheds a lot of light on what it would take to keep MacRuby going. 约书亚·巴兰科(Joshua Ballanco)的信息特别阐明了保持MacRuby运转所需的方法。

You can still use the garbage collector by setting GCC_ENABLE_OBJC_GC = supported in Xcode; 您仍然可以通过设置Xcode GCC_ENABLE_OBJC_GC = supported来使用垃圾收集器; but as I said, it won't make MacRuby actually usable (yet). 但是正如我说的那样,它实际上并不能使MacRuby可用。

I suggest people interested in cocoa in ruby help out refining the cocoa gem instead of hoping for any progress on macruby which is abandoned by its creators for commercial interests. 我建议对红宝石中的可可粉感兴趣的人帮助提炼可可宝石,而不是希望在其制造商出于商业利益而放弃的macruby上取得任何进展。 The cocoa gem is quite useful already, but need to mature a bit in some cases. 可可宝石已经非常有用,但是在某些情况下需要成熟一些。

https://github.com/patrickhno/cocoa

DISCLAIMER: Yes I am the author. 免责声明:是的,我是作者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM