2. Rhodes is
• Rhodes makes multiple native application as
the iPhone, Android from single code.
• Ruby + HTML MVC Framework
• MIT License
• Rhodes deploy to device with the Xcode and
Android SDK,NDK.
3. Install Rhodes
• Open the Gems Folder
– sudo chmod 775 /Library/Ruby/Gems/1.8
• $ gem install rhodes
4. Install homebrew
• $ ruby -e "$(curl -fsSkL
raw.github.com/mxcl/homebrew/go)"
• $ sudo chmod 775 /usr/local
• $ sudo chown -R $USER /usr/local/*
• $ brew update
Homebrew is the package system for UNIX Tool on Macintosh. Homebrew is compact
and simple than MacPorts.
7. Additional install on Xcode
• Boot xCode, Click preference. After that Install
the iOS Simulator and Command line Tools
8. Install Android SDK/NDK
• Download the android JDK from Apple
– http://support.apple.com/downloads/#java
• Download Android SDK/NDK
– http://developer.android.com/sdk/index.html#do
wnload
• Select a 64bit version When you use Moutain
Lion
– http://support.apple.com/kb/HT3696
Android NDK is Native(C、C++) Development kit
9. Path set for Android SDK
• Open the terminal window and goto home.
• Make a .bash_profile by Editor (vim etc…)
• open .bash_profile is easy to edit on Mac
11. Make sure the path
• $ printenv
• PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
/usr/local/git/bin:/usr/local/rvm/bin:/Users/blue
mooninc/android_sdk/sdk/tools:/Users/bluemo
oninc/android_ndk/toolchains:/Users/bluemoo
ninc/android_sdk/sdk/
• Check the Android SDK/NDK path
• Close terminal or below command to refresh
– $source ~/.bash_profile
12. Set build parameter
• $ rhodes-setup >> build.yml will made
– We will ask you a few questions below about your dev
environment.
– JDK path (required)
(/Library/Java/Home): /System/Library/Flameworks/J
avaVM.flamework/Home
– Android SDK path (blank to skip) ():
/Users/bluemooninc/android_sdk/sdk/
– Android NDK path (blank to skip) ():
/Users/bluemooninc/android_ndk/
13. Get Ruby 2.0!
• Ruby1.8.7 (Mac OS X Default) is old and error
stop on compile. You can get Version2 below.
• $ ruby -e "$(curl -
fsSkL raw.github.com/mxcl/homebrew/go)"
• $ brew install rbenv
• $ brew install ruby
15. Generate a Application
• $ rhodes app storemanager
– >> Ganerate an Application folder and template
files.
• $ cd storemanager
– >> move to project folder
• $ rhodes model storemanager name
– >> Ganarate a scaffold for MVC framework
16. Run the Android simulator
• rhodes/platform/android/build/androidcom
mon.rb
– Add "_64” to androidcommon.rb When you drive
64 bit as the Android NDK
– $ndkhost = `uname -s`.downcase!.chomp! + "-
x86_64”
• $ rake run:android:rhosimulator
– >> Quick simulate for debug
17. 1 bug fix
• As the 3.5.1.12 has one bug(Already fixed at
github)
– There is a bug in build script that causes this error.
It is already fixed at master. You may fix it yourself
in your rhodes.
Open /var/lib/gems/1.9.1/gems/rhodes-
3.5.1.12/platform/android/build/android_tools.rb
– At line 211 And make this line to look as Class
name
– FileUtils.rm_f $applog_path if !$applog_path.nil?
18. Prepare the Android Virtual Device
• Boot eclipse on android_sdk, Select AVM
manager on Window menu
20. Run the Emulator
• $ adb start-server >> Start the adb server
• rake run:android:rhosimulator >>Quick debug
• $ rake run:android >> Deploy to the emulater
21. Make the iOS Development
• Edit build.yml --------------------------------
• iphone:
• configuration: Debug
• sdk: iphonesimulator6.1
• provisionprofile:
• codesignidentity: "iPhone Developer"
• -------------------------------------------------------
22. Run the simulator
• rake run:iphone:rhosimulator >> Quick debug
• rake run:iPhone >> Deploy to iOS simulator
23. Deploy to Android Device
• $ CD $home >> move to home directory
• open .android/adb_usb.ini
• Connect USB your device and Check the
Manufacture ID by the system profiler on your
Macintosh
25. Check Device and Build
• Cd ~/android_sdk/sdk/platform-tools/
• android update adb
• adb devices
List of devices attached
4*************c device >> You will see your Android device serial
number
• Goto project folder and build it.
rake run:android:device
If you’ve get the error: device not found, Then Try it below ex.
• /Users/bluemooninc/android_sdk/sdk/platform-tools/adb -d install -r
/Users/bluemooninc/RhodesProject/storemanager/bin/target/android/sto
remanager-debug.apk
Success mean finish
29. Deploy to Real device
• Double click to
Library/Ruby/Gems/1.8/gems/rhodes-
3.5.1.12/platform/iphone/rhorunner.xcodepro
j
• Connect iPhone to USB and Click Run
• After pages are Apple Developer registration
31. Make a certification data
• Boot key chain from utility folder and select Assistant
• Keep blank a CA email address,Save to disk, set the key pear info.
• Input (2048bit, RSA to key pear parameter)
• CertificateSigningRequest.certSigningRequest will save on your disk