Copy link to clipboard
Copied
I cannot get the iOS Simulator app to launch as anything other than iPhone 5 when using AIR adt. I've tried changing the AIR_IOS_SIMULATOR_DEVICE environment variable to different values, but the Simulator always launches my app simulating an iPhone 5.
I've tried the following:
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Retina"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 6"
I confirmed that the setting is changed by testing:
launchctl getenv AIR_IOS_SIMULATOR_DEVICE
Do I need to restart something or flush something?
I'm using AIR 15.0.0.289, Xcode 6.0.1, OS X 10.9.5. Project is a pure ActionScript project making heavy use of Stage3D/Starling, and I'm using IntelliJ IDEA 14 EAP IU-138.2210.3 (ouch that name hurts) as my development environment.
Relaunching IntelliJ IDEA after every change of AIR_IOS_SIMULATOR_DEVICE is the only way to get this to work.
Annoying, but works for me!
Copy link to clipboard
Copied
Please try restarting Terminal after setting environment as launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Retina" .
Hope this will resolve your problem.
Thanks
Pravendra
Copy link to clipboard
Copied
Nope. Simulator just LOVES iPhone 5
Copy link to clipboard
Copied
Nope. Simulator just LOVES iPhone 5
this is my experience in Flash Builder 4.7
Copy link to clipboard
Copied
Relaunching IntelliJ IDEA after every change of AIR_IOS_SIMULATOR_DEVICE is the only way to get this to work.
Annoying, but works for me!
Copy link to clipboard
Copied
I've had some success in setting this value.
You must set it:
Furthermore it appears to be necessary to reboot the computer before setting this value. Possibly clearing the caches as well (I used Cocktail). And don't forget to sacrifice that chicken!
Copy link to clipboard
Copied
this worked for me! thank u!