Nouvelles Solutions

Let's Talk: 1-303-800-4641
Running Your Flex Mobile App on the iOS Emulator

I just downloaded the latest AIR 3.3 and it supports running your Flex mobile apps in the iOS Emulator. If you look at Air Developer Tool help (adt -help) you get the syntax of all the commands that adt support…part of which is the following description:

adt -package -target ( ipa-test | ipa-debug | ipa-app-store | ipa-ad-hoc | ipa-test-interpreter | ipa-debug-interpreter | ipa-test-interpreter-simulator | ipa-debug-interpreter-simulator ) ( CONNECT_OPTIONS? | LISTEN_OPTIONS? ) ( -sampler )? SIGNING_OPTIONS ( PLATFORM-SDK-OPTION? FILE-AND-PATH-OPTIONS | PLATFORM-SDK-OPTION? )

For my app this translates into:

adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore /Users/daniel/Desktop/certificates/daniel.p12 -storepass secret app01_ViewNavigatorApp app01_ViewNavigatorApp-app.xml app01_ViewNavigatorApp.swf

This generate the app01_ViewNavigatorApp.ipa iOS app ready to be launched in the Emulator.

Then you can install the app on the emulator as follows:

adt -installApp -platform ios -platformsdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -device ios-simulator -package app01_ViewNavigatorApp.ipa

Finally to run it:

adt -launchApp -platform ios -platformsdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -device ios-simulator -appid app01_ViewNavigatorApp

Hope this will help you out. To find more on iOS development with Flex come see my Building iPad apps with Flex next week.

Enjoy!
Daniel Wanja

Comments