Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using MacRuby for developing iPhone apps

Tags:

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?

like image 718
picardo Avatar asked Feb 12 '11 16:02

picardo


2 Answers

An answer to the question has been updated by RubyMotion:

RubyMotion is a revolutionary toolchain for iOS. It lets you quickly develop and test native iOS applications for iPhone or iPad, all using the awesome Ruby language you know and love.

like image 175
Ain Tohvri Avatar answered Sep 25 '22 08:09

Ain Tohvri


This is a dupe of Can you use MacRuby to develop applications for the Mac App Store? (more or less).

Is it possible to build an iPhone app using MacRuby alone, without any knowledge of Objective-C?

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.

like image 27
bbum Avatar answered Sep 22 '22 08:09

bbum