Clone this wiki locally
If you have never set up your Mac for Ruby development before, here are a simple set of steps to get you up and running with all the required pieces.
Open the App Store, and search for 'Xcode'. Download and install, it's free.
Launch Xcode and install any required System Components.
Xcode > Preferences… Choose the Downloads toolbar item, choose the Components tab. Make sure Command Line Tools are installed.
curl -L https://get.rvm.io | bash -s stable --ruby
Install Ruby 1.9.3:
rvm install 1.9.3
Switch to using the RVM installed Ruby:
rvm use 1.9.3
Install Bundler into the gemset for Ruby 1.9.3:
gem install bundler
ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
Install Node.js using Homebrew:
brew install node
Install the Android SDK using Homebrew:
brew install android
These instructions assume you want to use Homebrew. If you have other ways you like to set up your Mac for development, please go ahead. As long as you have these dependencies installed, it doesn't really matter how they were installed.
Some useful android commands
- See what devices are connected (ie: does android know your emulator is up?):
- Don't find any devices that should be? Re-start adb server:
- See a list of Android Virtual Devices (avd):
- Start an emulator with a particular avd:
emulator -avd nexus7