• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

iOS packaging ipa-debug fails

Guest
May 31, 2011 May 31, 2011

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

TOPICS
Development

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
May 31, 2011 May 31, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 31, 2011 May 31, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 31, 2011 May 31, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 01, 2011 Jun 01, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 01, 2011 Jun 01, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2011 Jun 01, 2011

Copy link to clipboard

Copied

Do you have the swc set to Merge, or RSL?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 01, 2011 Jun 01, 2011

Copy link to clipboard

Copied

This are my compiler arguments:
     -output=${app.builddir}/${app.rootfile}
     -source-path+=${app.rootdir}/src
     -static-link-runtime-shared-libraries=true
     -compiler.include-libraries+=libs
where my libraries are located in libs.
Do I need to set another option to include the SWC to the SWF file?
Bernd

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 01, 2011 Jun 01, 2011

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 02, 2011 Jun 02, 2011

Copy link to clipboard

Copied

Setting runtime-shared-libraries to false does also not work.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 08, 2011 Jun 08, 2011

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jun 08, 2011 Jun 08, 2011

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines