Skip to content

Instantly share code, notes, and snippets.

@neves
Created September 25, 2014 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neves/6be8c2b6c9384db6a282 to your computer and use it in GitHub Desktop.
Save neves/6be8c2b6c9384db6a282 to your computer and use it in GitHub Desktop.
# cria um emulador ios para cordova
cordova create emulator
cd emulator
git init
git add .
git commit -m 'cordova create emulator'
for name in battery-status camera console contacts device device-motion device-orientation dialogs file file-system-roots file-transfer geolocation globalization inappbrowser media media-capture network-information plugin.softkeyboard speech.speechsynthesis splashscreen statusbar vibration
do
cordova plugin add org.apache.cordova.$name
git add .
git commit -m "add plugin $name"
done
cordova platform add ios
cordova build
git add .
git commit -m 'cordova platform add ios'
echo 'platforms/ios/cordova/console.log' > .gitignore
git add .
git commit -m '.gitignore'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment