使用 MacRuby 开发 iPhone 应用程序
我想要构建一个 iPhone 应用程序,但我没有足够的时间来学习 Objective-C。我已经了解 Ruby 并发现了 MacRuby。是否可以在不了解 Objective-C 的情况下仅使用 MacRuby 构建 iPhone 应用程序?
I'm looking to build an iPhone app, but I don't have enough time to learn Objective-C. I already know Ruby and discovered MacRuby. Is it possible to build an iPhone app using MacRuby alone, without any knowledge of Objective-C?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
RubyMotion 已更新该问题的答案:
An answer to the question has been updated by RubyMotion:
这是的骗局,你可以使用MacRuby 为 Mac App Store 开发应用程序?(或多或少)。
简而言之,不。
所有 API(系统框架)、文档、开发工具、示例以及大多数开发社区都使用 Objective-C。无论如何,你必须彻底了解 Objective-C 才能针对 iOS 或 Mac OS X 系统 API 编写应用程序。
同样,MacRuby 运行时使用 Mac OS X 附带的 Objective-C 垃圾收集器。虽然将该收集器移植到 iOS/ARM 可能并不难(源代码可用),但系统框架不支持它;这是行不通的。
This is a dupe of Can you use MacRuby to develop applications for the Mac App Store? (more or less).
In short, no.
All of the APIs (system frameworks), documentation, dev tools, examples, and the majority of the development community use Objective-C. You are going to have to know Objective-C through and through to be able to write an app against the iOS or Mac OS X system APIs anyway.
As well, the MacRuby runtime uses the Objective-C garbage collector that ships with Mac OS X. While porting that collector to iOS/ARM is likely not that hard (the source is available), the system frameworks don't support it; it won't work.
MacRuby 尚未移植到 iOS。
去年 9 月,一位 Apple 工程师在 Twitter 上透露,正在将 MacRuby 移植到 iOS。
然而,在这样的版本发布之前,您将无法使用 MacRuby 编写 iOS 应用程序。
Apple 最近宣布 MacRuby 将成为 包含在下一版本的 OS X 中。看起来 MacRuby 可能正在成为 Apple 祝福的 OS X 和 iOS 应用程序开发工具。目前人们只能抱有希望,但这些早期迹象是有希望的。
MacRuby is not yet ported to iOS.
An Apple engineer revealed on Twitter last September that work is being done to port MacRuby to iOS.
Until such a release sees the light of day, however, you will not be able to use MacRuby to write iOS apps.
Apple recently let it become known that MacRuby is to be included with the next release of OS X. It certainly looks like MacRuby may be on its way to becoming an Apple-blessed means of developing apps for OS X and iOS. One can only hope at this point, but these early indications are promising.