Skip to main content
May 31, 2011
Question

iOS packaging ipa-debug fails

  • May 31, 2011
  • 1 reply
  • 1652 views

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

This topic has been closed for replies.

1 reply

Participating Frequently
May 31, 2011

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

May 31, 2011

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

June 1, 2011

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