Has anyone discovered how to use the IOS Simulator in Xcode to simulate iOS Air Apps? I see the new deploy targets in adt but am not sure what to do with my ipa after compiling. It is my understanding that to use the simulator you must have an Xcode project so I'm not sure how the ipa helps.
There are many reasons. The first, listed in the release notes, is that some developers might not have access to an iOS device. Granted, you will need to test on the real device eventually, but the simulator is a good solution for development. The simulator allows you to see how the app behaves within iOS whereas testing with adl only shows the app once loaded and running. This allows you to test behavior around operating system events more closely to the real thing.
Still can't get this to work. I tried for a few hours before giving up. It's hard to know if the simulator is worthwhile until it's usable.
The Flash Builder ios "simulator" is just a standard Adobe Air window, really. The actual iOS runs much less smooth, much much slower and I don't always get the resolution issues right until I try it out on a device. So I too am interested in running this in the simulator.
Now, if we look at the new ADT.exe ( the tool that actually packages your app for iOS, I believe Flash Builder uses this tool?) you can see a couple of new options. I think in this case we are looking for "DEVICE-OPTION" : ios-simulator. I've never run an app through the adt.exe manually before. So I think we have to wait for a Flash Builder update before we can use all this new goodness.
When you have Xcode running and the device connected with USB, you can see the device on the Xcode's left bar below a header "Devices". Under the connected device name is a subheader "Applications", just browse there and drag the ipa file there from Finder. The yellow light shows that it is syncing and when it turns back to green your app is synced to the device.
Hey Kudoss,
I doubt that you will have that access with a Flash/Flex Air app. The command to run apps from within Xcode is for open Xcode projects and not for any ipa or even Xcode file on your desktop. Since you can't open an ipa within Xcode you could not open that AIR app... To run an app from within the Simulator (wich is an independend app) you possible might just copy it to a certaint location. I am not sure about that, but I think that the Simulator might be able to play as well ipa data that is not made with Xcode.
Imho, you do not need a xcode project to run your ipa in the ios-simulator.
quoted from the releasenotes (air 3.3 beta 2):
Simulator Support
As the Simulator on iOS is x86 therefore two new targets have been added in ADT for it . Please note that Packaging for simulator is supported only in interpreter mode.
Targets are:
1.) ipa-test-interpreter-simulator
2.) ipa-debug-interpreter-simulator.
To start testing your application on Simulator there is no need to obtain a developer certificate from Apple (which is a time consuming process) or create a provisioning profiles before starting to develop an AIR application. (A p12 certificate, which can be created by the user himself would be suffice)
To package application for simulator execute following commands.
*Interpreter Target*
adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 - keystore Certificates.p12 -storepass password Sample_ipa_name sample_ipa-app.xml sample_ipa.swf
*Debug Target*
adt -package -target ipa-debug-interpreter-simulator -connect -storetype pkcs12 -keystore Certificates.p12 -storepass password Sample_ipa_name sample_ipa-app.xml sample_ipa.swf
*To install application in simulator *
adt -installApp -platform ios -platformsdk (path to sdk like /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi m ulator5.0.sdk) -device ios-simulator -package Sample_ipa_name.ipa
*To launch application in simulator *
adt -launchApp -platform ios -platformsdk (path to sdk like /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSi m ulator5.0.sdk) -device ios-simulator -appid Sample_ipa_name
I am trying to get this to work:
Adobe AIR 3.3 Debugging with USB Android & iOS Simulator (with Flash Builder 4.6)
http://www.youtube.com/watch?v=ZDMJUSuMX3M
I am on osx Lion and I have been able to get it to run from the Terminal, but so far I can't get it to work from Flashbuilder. I do not get an error in the console, it just shows the app not installed / app already installed message. To get it to run from Terminal I had to cd into the bin directory and not use the full path to the swf for the package command, so I'm wondering if thats the trouble from Flash Builder, but I cant seem to get an error to verify.
Anyone else tried this successfully? I am only trying for ios at the moment.
Incase this saves anyone some trouble along the way of helping to figure this out, xcode 5 on Lion has the sdk here:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.p latform/Developer/SDKs/iPhoneSimulator5.1.sdk
Also, you have to download it afterwareds from the downloads tab in the preferences.
North America
Europe, Middle East and Africa
Asia Pacific