//calabash-cucumber for ios
https://www.moncefbelyamani.com/ios-automated-testing-with-calabash-cucumber-ruby/
https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#lion-install //install tools for dev
* xcode-select --install //xcoce-select
* http://developer.apple.com/downloads, search for "command line tools", select the package for OSX and XCode, download and install
* ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" //install Homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
//uninstall brew
on mac os 10.11.5, it will report that brew is already install, but can't find brew while running. the solution is: rm -r /usr/local/.git before install (http://www.zhihu.com/question/35928898)
* brew update
brew install git
* echo "gem: --no-document" >> ~/.gemrc //disable rvm document
* before install rvm, check the gem source first
if you do not have vpn, remove the default source first: $ gem source --remove https://rubygems.org/
//install rvm fail, shell_session_update: command not found
gem source --remove http://ruby.taobao.org/
gem source --add https://ruby.taobao.org
//gem is package manager for ruby, gem source --list can list the source, check https://ruby.taobao.org to check why we need to add this source
curl -L https://get.rvm.io | bash -s stable --auto-dotfiles --autolibs=enable --rails
type rvm | head -1 //check if rvm works, if rvm not found, need to restart terminal
* ruby -v //ruby 2.2.0 or higher
rvm reinstall 2.2.0 --disable-binary //if no ruby