Skip to main content
Inspiring
September 29, 2011
Answered

Publishing takes tooo much time

  • September 29, 2011
  • 2 replies
  • 1420 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

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?

2 replies

Inspiring
September 29, 2011

Can you use external SWFs on iOS? I thought that was a no-no.

It takes me about 15 minutes with 20MB worth of files, so yeah, 500MB might take a long time to compile.

Inspiring
October 2, 2011

  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.

yusuf_memonAuthorCorrect answer
Inspiring
October 2, 2011

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?

September 29, 2011

An hour seems like a long time... but it routinely takes me 15 min to publish for iPad and I don't have nearly 500MB worth of assets. Publishing in Flash is slow in general compared to various other compilers.. not sure why it's like that either - as it certainly does not need to be.