Adobe AIR: How to select iOS Simulator Hardware

In an Adobe AIR Mobile project, you can either launch the project on an actual device, the AIR simulator, or — if running on OS X — the iOS simulator. Howerver, when choosing the iOS simulator, I cannot select the hardware / device type that I want to use, e.g. iPhone 6 or 6 Plus. It always starts up with iPhone 5.

Does anyone know how one can choose another device type?

Thanks in advance for any help!

configurations.png

9 comments
Comment actions Permalink

Adobe says that you need to set AIR_IOS_SIMULATOR_DEVICE env variable from terminal to the corresponding value, for example:
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad"

0
Comment actions Permalink

Thanks a lot for the fast reply, Alexander! That did the trick.

For reference: the String you have to use it the exact text you see in the "Hardware / Device" menu of the iPhone simulator, so here are a few samples:

launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 4s"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 5"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 5s"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 6"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPhone 6 Plus"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad 2"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Retina"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Air"

Beware:

  • The strings are case-sensitive!
  • You need to restart IntelliJ so that it picks up a changed value.

It would be great if a future version of the Flash/Flex plugin would allow to pick that value directly in the GUI. :x
1
Comment actions Permalink

Can anyone confirm that this still works using IDEA 15 and xcode 7?

thx

0
Comment actions Permalink

Does anyone know if the same applies to ipad pro (12.9-Inch Display)? I tried:

launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Pro"

But it didn't seem to work and instead reverts to iphone 5.

0
Comment actions Permalink

I am also trying to launch iPad Pro, but it's not being launched.

I am using:
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Pro"
launchctl setenv AIR_IOS_SIMULATOR_DEVICE "iPad Pro (9.7 inch)"   (This is the exact string I see on Hardware/Device).

Has anyone be able to launch iPad Pro on iOS simulator?

0
Comment actions Permalink

Reaching out to see if anyone has been able to launch the iPad Pro (12.9 inch)? I've followed the above instructions and also Adobe's http://help.adobe.com/en_US/air/build/WSd6d4f896b3a8801b686f6f0813719c0417c-8000.html  all to no avail.

Thanks!

0
Comment actions Permalink

Hi Randy.
Adobe AIR SDK 26 Beta (labs.adobe.com) fix the issue trying to launch iPad Pro, I was able to launch iPad Pro (9.7 inch) using "iPad Pro (9.7 inch)". So I guess it should work for 12.9 inch too in a similar way. 

0
Comment actions Permalink

+1 to Daniel Sperl suggestion.

0
Comment actions Permalink

+1 to Daniel Sperl suggestion.  

It would be great if a future version of the Flash/Flex plugin would allow to pick that value directly in the GUI. :x

0

Please sign in to leave a comment.