Skip to main content
rjoshicool
Inspiring
October 12, 2011
Question

SWF and XML for Command line compiling for iOS

  • October 12, 2011
  • 2 replies
  • 1527 views

I need to compile an application for iOS using command line ADT. I need to pass the SWF and XML to the ADT command. But which ones do I need to pass as the ones available are in the debug folder and I don't think they are well optimized for mobile publishing. Also the XML has debug with id in it.

This topic has been closed for replies.

2 replies

Adobe Employee
October 13, 2011

Hi,

Yes, Flash Builder, by default, doesn’t save release swfs. A simpler way to get them however be to go to Project->Properties->Flex Compiler and set

‘-debug=false’ in compiler arguments.

Now the swf generated in bin-debug will be a release swf.

Please let us know in case you face any issues.

Thanks,

Amish.

Participating Frequently
October 13, 2011

I'm not sure that's really simpler. For one thing, it still gives you the .debug on the end of the application ID, which is undesireable in a release build.

Adobe Employee
October 14, 2011

Yes your are correct. The application id has .debug at the end. However the swf has no debug information in it.

You can to export a release version of your application to get the release swf.

You can find more information at:

http://help.adobe.com/en_US/flashbuilder/using/WSe4e4b720da9dedb5-13a250c812e8e9b5533-7ff9.html

Thanks,

Amish.

Participating Frequently
October 12, 2011

I take it that you are using Flash Builder. If so, here's a little trick:

Open the Export release build dialog.

Click Next.

Click Cancel.

To prepare for packaging, Flash Builder compiles the SWF and app.xml and puts it in a folder called, bin-release-temp. When you cancel the export, the files are not cleaned up (they are only deleted when you complete the packaging through Flash Builder).