Skip navigation
Currently Being Moderated

Xcode simulation

Apr 6, 2012 1:27 PM

Tags: #air #ios #3.3

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.

 
Replies
  • Currently Being Moderated
    Apr 7, 2012 5:30 PM   in reply to DrMaier

    would love to see an example of how this works, this would be a major time saving feature!

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 8, 2012 9:56 AM   in reply to loll_au

    What are actually the benefits of using Xcode simulator instead of Flash Builder's simulator? As far as I have understood, you can not at least measure the performance with that simulator any better.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 12:49 AM   in reply to DrMaier

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 7:00 AM   in reply to Nielzz

    So, what does that mean practically? Where can I set this Parameter? Actionscript-Properties? I do really need a tool to test things like gestures while developing - always copying with itunes is not that handy...

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 7:45 AM   in reply to iam0815

    If you did not know yet, you can also use Xcode for copying the app to a device. It's much more convenient compared to iTunes.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 7:47 AM   in reply to kudosss

    This is new to me ( and I guess many others ) I hate the iTunes thing. How do we do this? Care to share?

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 12, 2012 7:53 AM   in reply to Nielzz

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 16, 2012 12:53 AM   in reply to kudosss

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 20, 2012 3:27 AM   in reply to DrMaier

    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

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 7:48 AM   in reply to kaeptn2lvl

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    May 29, 2012 8:36 AM   in reply to SMakinson

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points