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!
请先登录再写评论。
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"
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:
It would be great if a future version of the Flash/Flex plugin would allow to pick that value directly in the GUI. :x
Can anyone confirm that this still works using IDEA 15 and xcode 7?
thx
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.
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?
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!
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.
+1 to Daniel Sperl suggestion.
+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