Ionic-framework: bug: changing iOS simulator device the app disappear

Created on 12 Nov 2014  ·  3Comments  ·  Source: ionic-team/ionic-framework

Type: bug

Platform: ios 8 webview

iOS simulator: 8.1
Ionic: beta 13
Ionic CLI: 1.2.8
Cordova: 4.1.0

I run: ionic emulate ios -l -c -s
The app starts on an iPhone 6 simulator ok.
When I try to change the device the app disappear from the simulator device. I'm not able to find the app in the home screen anymore.

This is something "new" because with iOS 7 (and old iOS simulator) all was fine.

Most helpful comment

You may want to run the following command to target certain devices:

ionic emulate ios --target="iPhone-6"

# Valid values for "--target" (case sensitive):
#   iPhone-4s
#   iPhone-5
#   iPhone-5s
#   iPhone-6-Plus
#   iPhone-6
#   iPad-2
#   iPad-Retina
#   iPad-Air
#   Resizable-iPhone
#   Resizable-iPad

Please also note, when you compile an app to a specific simulator, it's installed on that simulator. So when you change devices, you must also recompile that app for that device to have it on that simulator

Hope this helps!

All 3 comments

You may want to run the following command to target certain devices:

ionic emulate ios --target="iPhone-6"

# Valid values for "--target" (case sensitive):
#   iPhone-4s
#   iPhone-5
#   iPhone-5s
#   iPhone-6-Plus
#   iPhone-6
#   iPad-2
#   iPad-Retina
#   iPad-Air
#   Resizable-iPhone
#   Resizable-iPad

Please also note, when you compile an app to a specific simulator, it's installed on that simulator. So when you change devices, you must also recompile that app for that device to have it on that simulator

Hope this helps!

Hi, jbavari, how I can specify the rotation of the device?

in your simulator menu, under hardware there are options for rotation of device

Was this page helpful?
0 / 5 - 0 ratings