Rhodes is a cross-platform open source mobile development framework that is inspired by Ruby on Rails. in some aspects of development. Rhodes was developed by RhoMobile, which was recently acquired by Motorola Solutions.
We started checking out Rhodes a year ago when using Snow Leopard as a development platform, and developed some trial apps. At that time, Rhodes used to be a simple gem that could be downloaded using the compatible Ruby (v 1.8.7) and rvm. Since I recently upgraded to Lion, I thought I'd give Rhodes another spin to see if it had changed. Indeed, I found that RhoMobile has grown by leaps and bounds, and that Rhodes is now a small part of a much larger scheme of things: Rhodes now ships within Motorola's Rhomobile Suite which includes, apart from Rhodes, an IDE called RhoStudio for developing RhoMobile applications, and two other frameworks called RhoConnect and RhoElements.
In this post I'll explain how I went about setting up Rhodes 3.3.3 from the RhoMobile suite and running the sample APIs app for Rhodes (included with the RhoStudio installer) on iOS and Android simulators using the RhoStudio IDE.
Here, we select the relevant iOS device simulators and XCode command line tools, which is a prerequisite of installing RVM on OS X.
Note: if you don't want to develop for iOS and still want to install RVM (without installing XCode, as it is a heavy download), then you might need to install the gcc compiler for Mac to proceed.
Next, ensure that you have RVM and Ruby version 1.9.3 installed on your Mac. There is a step by step guide available here. In my case I used RailsInstaller for installing Ruby on Rails, which also installed RVM. If you prefer GUIs then you may want to use JewelryBox for managing RVM, rubies, gemsets and gems on your Mac.
Rhodes also requires a JDK. For Lion, we need to install Java from the apple support page.
We can now proceed to creating Rhodes apps for both Android and iOS platform with (hopefully) less effort than writing apps in separate native environments.
We started checking out Rhodes a year ago when using Snow Leopard as a development platform, and developed some trial apps. At that time, Rhodes used to be a simple gem that could be downloaded using the compatible Ruby (v 1.8.7) and rvm. Since I recently upgraded to Lion, I thought I'd give Rhodes another spin to see if it had changed. Indeed, I found that RhoMobile has grown by leaps and bounds, and that Rhodes is now a small part of a much larger scheme of things: Rhodes now ships within Motorola's Rhomobile Suite which includes, apart from Rhodes, an IDE called RhoStudio for developing RhoMobile applications, and two other frameworks called RhoConnect and RhoElements.
In this post I'll explain how I went about setting up Rhodes 3.3.3 from the RhoMobile suite and running the sample APIs app for Rhodes (included with the RhoStudio installer) on iOS and Android simulators using the RhoStudio IDE.
Installing the Prerequisites
XCode
First off, since I wanted to start developing for iOS, I needed to download and install the XCode 4 from the AppStore.
Next, to run iOS aps on OS X I had to install the relevant simulators. These were not bundled with the XCode and had to be downloaded within XCode by going to XCode > Preferences > Downloads.
Here, we select the relevant iOS device simulators and XCode command line tools, which is a prerequisite of installing RVM on OS X.
Note: if you don't want to develop for iOS and still want to install RVM (without installing XCode, as it is a heavy download), then you might need to install the gcc compiler for Mac to proceed.
Android SDK
In order to develop for Android, we need the Android SDK and Android NDK. These need to be downloaded and unzipped at a convenient location, which will be needed later to configure Rhodes and RhoStudio.
RVM and Ruby
Java Development Kit (JDK)
Installing RhoMobile Suite, RhoStudio and Rhodes
Now we are ready to download the Rhomobile suite installer dmg file from here. Once downloaded, mount the dmg.
Here, you can choose to proceed with installing the the entire suite provided by running the 'install gems on rvm' script file. However, I wanted to install only Rhodes, and thus, installed only the relevant gems using the following commands in Terminal:
gem install rhomobile-debug
gem install "/Volumes/Motorola RhoMobile Suite Installer/.gems/rhodes-3.3.3.gem"
gem install rhodes-translator
Next, copy the "Motorola RhoStudio.app" from the dmg into the Applications folder of your Mac and launch it from Applications. Upon launching, RhoStudio requests a workspace path that can be specified to a location of choice. Note that the Rhodes installation guide suggests that one shouldn't add a path with spaces as it causes problems with RhoConnect applications.
We need to configure the android SDK path in RhoStudio for it to build for android. Go to RhoStudio > Preferences > RhoMobile > Android and add the paths for both SDK and NDK in relevant spaces. Click OK.
Building and Running the sample APIs application
Great, almost done now!
Within the Rhomobile suite installer downloaded earlier, go to samples and copy the rhodes-system-api-folder to your workspace folder specified earlier. In RhoStudio, import the project by selecting File > Import > Existing Project into workspace. Choose the root folder as the workspace directory to see the project in the list. Select the project and click Finish. The project should now be listed in the Project Explorer.
Within the Rhomobile suite installer downloaded earlier, go to samples and copy the rhodes-system-api-folder to your workspace folder specified earlier. In RhoStudio, import the project by selecting File > Import > Existing Project into workspace. Choose the root folder as the workspace directory to see the project in the list. Select the project and click Finish. The project should now be listed in the Project Explorer.
Using the Android simulator
Before you can run the project on Android, you need to install the relevant SDK and Google APIs. To do so go to <android-sdk-macosx>/tools and run the file called 'android'. This should launch the Android SDK manager. Here we need to select the android versions that we want to build for. At the time of writing this post, the build.yml file is configured for android 3.0, which is what we will select in the SDK manager and install.
After the installing the SDK platform, we also need to install the 'Google APIs' displayed under the installed SDK in the SDK manager. This is used by some Rhodes libraries in the kitchensink project.

After the installing the SDK platform, we also need to install the 'Google APIs' displayed under the installed SDK in the SDK manager. This is used by some Rhodes libraries in the kitchensink project.

In order to run the project, go to Run > Run Configurations... and create a new configuration by double clicking RhoMobile Application. Select the platform as Android and Simulator type as Simulator. Make sure that Project name says rhodes-system-api-samples. Click Run to give it a go.

Note: If it fails with a message requesting you to run 'set-rhodes-sdk' then do so in the project directory in the terminal and try running again. The application takes between 2 to 5 minutes to launch on an android simulator.

Note: If it fails with a message requesting you to run 'set-rhodes-sdk' then do so in the project directory in the terminal and try running again. The application takes between 2 to 5 minutes to launch on an android simulator.
Using the iPhone simulator
To run for iPhone create another run configuration and this time choose the Platform as iPhone. Click on run to start building for iPhone. Once built, the studio will launch the iPhone simulator with the application loaded.
All Done!
This concludes a walkthrough of how to set up Rhodes and RhoStudio on Mac OS X Lion.We can now proceed to creating Rhodes apps for both Android and iOS platform with (hopefully) less effort than writing apps in separate native environments.
ReplyDeleteThanks for sharing these niche piece of knowledge. Here, I had a solution for my inconclusive problems & it’s really helps me a lot keep updates…
iOS Course in Chennai |iOS Training Chennai|Android Training Chennai
Great Article android based projects
DeleteJava Training in Chennai
Project Center in Chennai
Java Training in Chennai
projects for cse
The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Nice and good article.. it is very useful for me to learn and understand easily.. thanks for sharing your valuable information and time.. please keep updating.
ReplyDeleteAndroid Training in chennai| Android course in chennai
Writing code is a skill that needs to be developed like any other craft. Start simple, and do it. Watching other people writing code isn’t enough. Adjusting other peoples’ code isn’t enough. You have to write your own code, that solves your own logistical problems. They can be made up problems, but the practice of problem solving is the fundamental basis of coding.
ReplyDeletejava training institute in chennai
Get an introduction to the latest version of spring and hibernate with XML and annotation concepts from spring and hibernate training in chennai by candid. Real time project based training and personalized training is provided to meet your requirements.
ReplyDeleteThis package is specially designed for Java experienced candidate.
Post training support for improved performance at work- Continuous updates on latest trends on subjects will be provided for 3 years from the date of joining.
Permanent trainer with 8+ years of experience in Project management.
spring hibernate coaching institute in chennai
Docker provides a way to run applications securely isolated in a container, packaged with all its dependencies and libraries.
ReplyDeleteDocker enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation.
The Docker platform is the only container platform to build, secure and manage the widest array of applications from development to production both on premises and in the cloud.
docker certification course in chennai
Great Article… I love to read your articles because your writing style is too good, its is very very helpful for all of us. Do check Six Sigma Training in Bangalore | Six Sigma Training in Dubai & Get trained by an expert who will enrich you with the latest trends.
ReplyDeleteIt has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted.
ReplyDeletefire and safety course in chennai
When I originally commented I clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I get four emails with the same comment. Is there any way you can remove me from that service? Thanks!
ReplyDeletedownloaddrasticdsemulatorapk.com
Marvelous and fascinating article. Incredible things you've generally imparted to us. Much obliged. Simply keep making this kind out of the post.
ReplyDeleteOracle DBA training in Chennai
Oracle DBA Training
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging
ReplyDeleteUIPath Training in Chennai
UIPath Training
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
ReplyDeleteiosh course in chennai
Amazing Article ! I have bookmarked this article page as i received good information from this. All the best for the upcoming articles. I will be waiting for your new articles. Thank You ! Kindly Visit Us @ Coimbatore Travels | Ooty Travels | Coimbatore Airport Taxi | Coimbatore taxi
ReplyDeleteAnd indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
ReplyDeleteData science Course Training in Chennai |Data Science Training in Chennai
RPA Course Training in Chennai |RPA Training in Chennai
AWS Course Training in Chennai | AWS Training in Chennai
Devops Course Training in Chennai | Devops Training in Chennai
Selenium Course Training in Chennai | Best Selenium Training in Chennai
Java Course Training in Chennai | Best Java Training in Chennai
Super Blog...
ReplyDeleteRAILWAY RESERVATION SYSTEM
APTITUDE QUESTIONS ON PERCENTAGE
APACHE-PIG TUTORIALS
COMPANY INTERVIEW QUESTIONS
APTITUDE PROFIT AND LOSS
APTITUDE NUMBERS
PROFIT AND LOSS QUESTIONS BASED ON SELLING
APTITUDE INTERVIEW QUESTIONS IN GEOMETRY
APACHE-PIG SUBTRACT DURATION
APTITUDE QUESTIONS ON TIME-AND-WORK
ReplyDeleteBEST JAVA TRAINING IN CHENNAI
FREE INTERNSHIP FOR MBA STUDENTS
FREE INTERNSHIP IN CHENNAI
FREE INTERNSHIP FOR CSE STUDENTS IN BSNL
FREE CIVIL ENGINEERING STUDENTS INTERNSHIP IN CHENNAI
FREE ECE STUDENTS INTERNSHIP IN CHENNAI
FREE BSC STUDENTS INTERNSHIP IN CHENNAI
FREE CSE INTERNSHIP IN CHENNAI
FREE ROBOTICS TRAINING IN CHENNAI
FREE INDUSTRIAL VISIT IN CHENNAI
ReplyDeleteINSTALL RPMS DIRECTORY
INTERVIEW QUESTIONS APTITUDE
INTERVIEW QUESTIONS VERBAL REASONING
FLIPKART WALLET HACK TOOL
INTERVIEW QUESTIONS CHEMISTRY
TUTORIALS C PROGRAMMING
BEST APACHE PIG TUTORIALS
TOP APTITUDE INTERVIEW QUESTIONS
APACHE PIG TOKENIZE FUNCTION
RESUME FORMAT FOR RETIRED GOVERNMENT OFFICER
Good...
ReplyDeleteAptitude Questions on Simple Interest
Interview Questions on Electrical Engineering
Aptitude Questions on Permutation & Combination
Resume for BCA Final Year Student
Aptitude Questions on Simple Interest
Interview Questions on Verbal Reasoning
Verbal Reasoning on Syllogism
Verbal Ability on Speech & Voices
Interview Questions on Programming
Aptitude Questions on LCM & HCF
Best Oracle Training in Chennai
ReplyDeleteThanks for sharing this blog. really nice and useful for me
ReplyDeleteKenya Shared Web Hosting
Dominican Republic Web Hosting
Dominican Republic Jordan Web Hosting
Dominican Republic Kazakhstan Web Hosting
Dominican Republic Web Hosting Korea
Dominican Republic Web Hosting Timor Lestes
Dominican Republic Costa Rica Web Hosting
Dominican Republic Hong Kong Web Hosting
ReplyDeleteDominican Republic Slovakia Web Hosting
Dominican Republic Bahrain Web Hosting
Dominican Republic Web Hosting India
Dominican Republic Iran Web Hosting
Dominican Republic Moldova Web Hosting
Dominican Republic Turkey Web Hosting
EXCELLENT INFORMATION AND THANKING YOU
ReplyDeleteINDIAN ADVOCATE RESUME FORMAT DOC
BYPASS MAC FILTERING ANDROID
HTML IMAGE ROLLOVER
OP AMP ADDER AND SUBTRACTOR THEORY
THE PROFIT OBTAINED BY SELLING AN ARTICLE FOR RS 480
THE LCM OF THREE DIFFERENT NUMBERS IS 1024
ERROR [ERR_HTTP_HEADERS_SENT]:
CANNOT SET HEADERS AFTER THEY ARE SENT TO THE CLIENT
GIVEN SIGNS SIGNIFY SOMETHING AND ON THAT BASIS AMCAT
ZOHO APTITUDE QUESTIONS 2019 PDF
HOW TO HACK HOTSPOT PASSWORD
Here is the colleges details to study in Bangalore. You can select the best college details from the below mentioned courses that you love to study. The list of colleges are only in Bangalore, so, if you are looking to study in Bangalore, just click the below mentioned links.
ReplyDeleteBSc Medical Imaging Technology Colleges in Bangalore | Medical Imaging Technology Colleges in Bangalore | BSc Optometry Colleges in Bangalore | Optometry Colleges in Bangalore |BSc Renal Dialysis Colleges in Bangalore | Renal Dialysis Technology Colleges in Bangalore |BSc Respiratory Care Technology Colleges in Bangalore | Respiratory Care Colleges in Bangalore |BSc Cardiac Care Technology Colleges in Bangalore | Cardiac Care Colleges in Bangalore |BSc Perfusion Technology Colleges in Bangalore | Perfusion Technology Colleges in Bangalore |
Thanks for taking time to share this post. It is really useful. Continue sharing more like this.
ReplyDeleteOracle Training | Online Course | Certification in chennai | Oracle Training | Online Course | Certification in bangalore | Oracle Training | Online Course | Certification in hyderabad | Oracle Training | Online Course | Certification in pune | Oracle Training | Online Course | Certification in coimbatore