Source: http://docs.phonegap.com/getting-started/1-install-phonegap/cli/
npm install -g phonegap@latest
npm install -g ios-sim
phonegap create helloworld --id "com.feihonghsu.helloworld" --name "appSample"
cd helloworld
phonegap serve
phone run ios --emulator