Skip to content

Instantly share code, notes, and snippets.

@citylims
Created April 10, 2015 20:08
Show Gist options
  • Save citylims/d8c7beced1cc72eb6d2a to your computer and use it in GitHub Desktop.
Save citylims/d8c7beced1cc72eb6d2a to your computer and use it in GitHub Desktop.
Ionic ios emulate workaround script
#!/bin/bash
# Manually emulate ionic/cordova application
echo "Emulating..."
cd ./platforms/ios/build/emulator
var=$(pwd)
ios-sim launch "$var"/*.app
@citylims
Copy link
Author

usage:
setup application the standard way

$ ionic start myApp tabs
$ cd myApp
$ ionic platform add ios
$ ionic build ios

Then create a file called emulate.sh in that directory and copy the content of this gist into it. Next you have to set permissions for this shell script.

$ sudo chmod 777 emulate.sh

After that, each time you want to emulate your application in iOS simulator, just run: ./emulate.sh

via Miroslav Masat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment