Skip to main content
Inspiring
September 29, 2011
Answered

Publishing takes tooo much time

  • September 29, 2011
  • 1 reply
  • 2915 views

I've developed an AIR application compatible with Flash Player. I want it to run it on my iPad, I already have developer certificate. Publish Settings are correct, but it's been 1 hour since i've Publish, still it shows "Publishing...". Any idea? Does it really take such a long time to publish .ipa? My stage resolution is 1024 x 768, .FLA size is 1.63 MB and external JPGs, SWFs and an FLV files are 503 MB.

This topic has been closed for replies.
Correct answer yusuf_memon

  Regarding my project, I tried removing all the assets and kept it for more than 2 DAYS but at the end it crashed.. I tried to publish it using AIR SDK, downloaded AIR SDK 2.7, and downloaded Adthelper (GUI for AIR SDK) (I even changed the version from 2.6 to 2.7 in XML file by the way). It created Build.bat, when I ran that, initially it showed "'java' is not recognized as an internal or external command, operable program or batch file." (in command prompt). I googled the problem and I came to know the Java DK was not installed. I installed Java DK 1.7 and than I tried to run Build.bat file, than it showed "Exception in thread "main" java.lang.IllegalArgumentException: Comparison method violates its general contract!" and so on... "Compilation failed while executing: ADT" at the end. I thought there might be problem with my project, so I removed everything, kept only 2 frames and few hundred lines script. Even though it did not publish...

  Well, above is for those who also face the same problem. I use Flash CS 5.5, I do have Apple Developer Certificate with me, I've successfully created .p12 file as well.

  @Sanika, I'll be uploading my project soon and would surely send you the link.


Finally, I've figured out the problem. I've something like this in my project:

var arrayName:Array = new Array();

var num:uint = 0;

arrayName.push(new Object());

arrayName[num].type1 = "String value";

arrayName[num].type2 = "String value";

arrayName[num].type3 = "String value";

arrayName[num].type4 = "String value";

arrayName[num].type5 = "String value";

arrayName[num].type6 = "String value";

arrayName[num].type7 = "String value";

arrayName[num].type8 = "String value";

arrayName[num].type9 = "String value";

arrayName[num].type10 = "String value";

arrayName[num].type11 = "String value";

num++;

likewise I add 571 objects (total length of arrayName is 571). It is like database as flash does not support database directly. If I publish alongwith all data (571), it stops creating file anymore, but if I reduce the number of data to 5, it creates ipa file...

Moreover, I've discovered that whenever flash publishes for ipa, initially it creates a folder in the publishing directory "AOTBuildOutput###.tmp" and a file "air###.tmp".. if everything goes fine than it creates one more file "aot###.tmp". Than it deletes folder and later deletes both files and creates .ipa file.. If you see Progress bar in flash but can't find any of these files/folder, it is hung. You should stop publishing which would indeed crash flash and retry. This is for those who face similar problems like me.

@Adobe/Sanika, Could you please let me know how to sort it out?

1 reply

Participating Frequently
September 29, 2011

Hi,

With 503 MB assets, it can take quite long to package the ipa-app-store target or you could be hitting a bug. To verify, you should the following:

1. reduce the number of assets and see if publishing completes

2. change the deployment type to "Quick publishing for device testing", which will package ipa-test target.

You could also try packaging your application from command line using ADT and choose some other target - ipa-test/ipa-test-interpreter. Also, could you specify the CS version and the AIR SDK version?

Thanks,

Sanika

Inspiring
September 29, 2011

Hi Sanika,

Thanks for your reply.

The type is already "Quick publishing for device testing". I'm using Adobe Flash CS 5.5, I don't use AIR SDK, I use only Flash IDE. Is the stage resolution correct? Or I need to reduce it?

Participating Frequently
September 29, 2011

Hi Yusuf,

Stage resolution is correct. For sake of testing, could you try reducing the number of assets - exclude some folders etc. and see if the packaging succeeds. For large projects, it can take quite a while for packaging to complete.

-sanika