Skip to main content
stolennickname
Inspiring
Sep 25, 2014 5:55 PM UTC
Answered

Can't change iOS Simulator device, AIR_IOS_SIMULATOR_DEVICE ignored

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
stolennickname
stolennicknameCorrect answer
Inspiring
Sep 26, 2014 6:13 PM UTC

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!

6 replies

Inspiring
Jun 16, 2015 1:16 AM UTC

I've had some success in setting this value.

You must set it:

  • After booting up
  • Before launching the simulator

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!

Translate
Inspiring
Nov 20, 2017 12:30 AM UTC

this worked for me! thank u!

Translate
stolennickname
stolennicknameAuthorCorrect answer
Inspiring
Sep 26, 2014 6:13 PM UTC

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!

Translate
Participating Frequently
Sep 26, 2014 5:33 AM UTC

Please try restarting Terminal after setting environment as launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Retina" .

Hope this will resolve your problem.

Thanks

Pravendra

Translate
Inspiring
Jun 15, 2015 10:00 PM UTC

Nope. Simulator just LOVES iPhone 5

Translate
kheftel
Inspiring
Jun 15, 2015 10:07 PM UTC
Nope. Simulator just LOVES iPhone 5

this is my experience in Flash Builder 4.7

Translate