Copy link to clipboard
Copied
Hi,
I follow the nice tutorial http://va.lent.in/blog/2011/03/25/air2-6-app-for-ios/. For simple apps the build script is working fine.
But when I try to build an application with the debug target (ipa-debug) with an additional SWC, the build fails after a while.
The exception occurs not in the ant output, instead a window is popping up:
Title: Microsoft Visual C++ Runtime Library
Content: Runtime Error! Program: C:\WINDOWS\system32\java.exe
The build process is allocating about 1.8 GB of memory. I try it on different machines (6 GB memory, Win7).
Does anyone know how to solve the problem?
Kind regards,
Bernd
Copy link to clipboard
Copied
Hi Bernd,
Is this a flex application? What is the size of the swf that you are trying to package?
We do have a few known packaging bugs with AIR 2.6 that are specific to Windows. You could give it a try on a Mac if you have one.
Also, try packaging with -Xmx1024m or -Xmx768m switch.
-Sanika
Copy link to clipboard
Copied
Hi Sanika,
yes it is a Flex application (4.5.0). The SWF file size is about 1.5 MB.
I do not have access to an Mac.
Where do I need to specify the -Xmx1024m switch?
I tried it directly as an ANT argument, mxmlc argument and ADT argument, but it does not work. The argument is rejected by all three applications.
Bernd
Copy link to clipboard
Copied
Hi Sanika,
I managed to use the -Xmx switch for java and tried serveral values, but it didnt help.
Any other idea?
Maybe its a problem with Flex 4.5.0? It seems that Flash Builder 4.5 does not offically support iOS deployment, only Android. Maybe I need to wait for 4.5.1!?
Cheers,
Bernd
Copy link to clipboard
Copied
Hi Bernd,
There are some known issues with packaging large flex applications on Windows with AIR 2.6. Unfortunately, I don't have any workaround to offer. Are you able to build ipa-test target? If the application performs well with ipa-test target, you could publish that?
We are working on the fix for the next AIR version. Could you mail the swf to me at mailto:sanika@adobe.com ? This would really help us verify the fix.
Thanks,
Sanika
Copy link to clipboard
Copied
Hi Sanika,
yes I'm able to build it with ipa-test. The problem is that my app is freezing when I try to instantiate a class which is part of an third party SWC file.
So I want to debug the it directy on the iPhone. I will send you the SWF file.
Cheers,
Bernd
Copy link to clipboard
Copied
Do you have the swc set to Merge, or RSL?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I'm spoiled by being able to use Flash for my compiling! It takes care of things like that. But from the look of it, try setting the runtime-shared-libraries to false.
Copy link to clipboard
Copied
Setting runtime-shared-libraries to false does also not work.
Copy link to clipboard
Copied
Hi Bernd,
Thanks for sending the swf. You are hitting a bug in AIR 2.6. It should be fixed in the next AIR version.
Thanks,
Sanika
Copy link to clipboard
Copied
Hi Sanika,
is this bug only occuring on Windows? Maybe I can package it on a Mac?!
When will the next AIR version be released? Because we will have a release of our app next month.
Cheers,
Bernd