Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Can't change iOS Simulator device, AIR_IOS_SIMULATOR_DEVICE ignored

Contributor ,
Sep 25, 2014 Sep 25, 2014

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.

TOPICS
Development
2.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Sep 26, 2014 Sep 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!

Translate
Sep 25, 2014 Sep 25, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 15, 2015 Jun 15, 2015

Nope. Simulator just LOVES iPhone 5

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 15, 2015 Jun 15, 2015
Nope. Simulator just LOVES iPhone 5

this is my experience in Flash Builder 4.7

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 26, 2014 Sep 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jun 15, 2015 Jun 15, 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Nov 19, 2017 Nov 19, 2017
LATEST

this worked for me! thank u!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines