Created
April 10, 2015 20:08
-
-
Save citylims/d8c7beced1cc72eb6d2a to your computer and use it in GitHub Desktop.
Ionic ios emulate workaround script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Manually emulate ionic/cordova application | |
echo "Emulating..." | |
cd ./platforms/ios/build/emulator | |
var=$(pwd) | |
ios-sim launch "$var"/*.app | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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