Skip to main content
stolennickname
Inspiring
September 25, 2014
Answered

Can't change iOS Simulator device, AIR_IOS_SIMULATOR_DEVICE ignored

  • September 25, 2014
  • 3 replies
  • 2144 views

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 has been closed for replies.
Correct answer stolennickname

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!

3 replies

Inspiring
June 16, 2015

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!

Inspiring
November 20, 2017

this worked for me! thank u!

stolennickname
stolennicknameAuthorCorrect answer
Inspiring
September 26, 2014

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!

Participating Frequently
September 26, 2014

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

Hope this will resolve your problem.

Thanks

Pravendra

Inspiring
June 15, 2015

Nope. Simulator just LOVES iPhone 5

kheftel
Inspiring
June 15, 2015
Nope. Simulator just LOVES iPhone 5

this is my experience in Flash Builder 4.7