Rhodes development files are compiled into a native executable that is installed on the device or run in a desktop simulator using command line tools or the web interface on rhohub.com.
Since Rhodes apps are native binary applications, they can be submitted and distributed through the Apple iTunes App Store, BlackBerry World, Android Marketplace, and other distribution channels. To build for a device, you typically need to sign up for those developer programs and acquire cryptographic keys required to sign applications, even though you will not be writing in the platforms native SDKs. You also need to observe each platform's user interface guidelines so that your applications can be approved. (See Part 1 of the book on submitting apps for your target platform(s).)
On platforms where the primary development language is Java, such as BlackBerry, Rhodes applications are cross-compiled into Java bytecode that are then executed natively. On iPhone, Android, Windows Mobile and Symbian platforms, Rhodes applications are compiled into Ruby 1.9 bytecode. On these platforms, Rhodes includes a Ruby executor that runs the bytecode on the device. The Rhodes Ruby implementation is a subset of Ruby 1.9. It does not include all of the libraries that you would find on a desktop implementation of Ruby, although it is possible to extend it and add additional libraries into your application. (See http://wiki.rhomobile.com/ index.php/Rhodes#Adding_Libraries_to_Your_Rhodes_Application.)
Although Ruby is an interpreted language, using Rhodes, you cannot run arbitrary Ruby code at runtime by using, for example, string eval. That capability was intentionally removed in Rhodes Ruby interpreter to comply with iPhone App Store's Rule 3.3.2 that states:
An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded and used in an Application except for code that is interpreted and run by Apple's Published APIs and built-in interpreter(s).
Was this article helpful?
The Easy Formula To Making Money With Iphone Apps. The exemplary development of technology from then till now has helped everyone in all aspects of our lives. Essential factors including social, physical, mental, and the like have been touched by these mechanics making our existence so easier.