Skip to main content
ron_zaidman
Participant
August 31, 2014
Question

why after adding "-useLegacyAOT no" I see "Uncompiled ActionScript" popup ?

  • August 31, 2014
  • 1 reply
  • 785 views

Hello

ipa worked fine in debug mode but crashed in adhoc mode.

The app crashed constantly at the same point (after clicking a button inside the app)

I searched for ios crash logs but couldn't find anything meaningfull:


"bug_type":"109"...

Exception Type:  EXC_BAD_INSTRUCTION

After hours of commenting out parts of the code I found this weird issue.

I had a class with a method clear().

Nothing inside this method was wrong.

But adding meaningless lines like fixed it:

var a:int = 0;

a+= 1;

trace("a=" + a);

So I assume it was a bug in the legacy AOT

Then I tried to solve this issue by using the new AOT (-useLegacyAOT no) and it worked.

It was really fast and nice.

But using the new AOT now I face a new problem.

I get this popup:

"Uncompiled ActionScript"

"Your application is attempting to run uncompiled ActionScript, probably due to the use of an embedded SWF,

This is unsupported on IOS, See the Adobe Developer Connection website for more info"

I load a swf with no code inside, only bitmap with as3 linkage in its library.

This popup wasn't there before adding "-useLegacyAOT no".

My questions are:

What caused this bug before adding "-useLegacyAOT no"?

And why after adding "-useLegacyAOT no" I get "Uncompiled ActionScript" popup ?

I use

FlashBuilder 4.7

Adobe Air SDK 14

This topic has been closed for replies.

1 reply

Nimisha1
Participating Frequently
September 1, 2014

Hi,

Can you please share the sample app(source code, swf, app-xml, secondary SWFs, assets) with us with which we can reproduce the problem at our end? My email id is nimisha1@adobe.com.

-Nimisha

ron_zaidman
Participant
September 1, 2014

Hi Nimisha

I can reproduce only the second bug with "Uncompiled ActionScript" popup.

sample code is attached.

What it does is:

When clicking on screen it loads swf from our cdn.

If you want to know what is inside the swf you can look at

assetOnServer/Gingerbread.fla

Try it once with a "-useLegacyAOT no" and once without.

note: certificates and provisioning profiles are not present in this

project.

Nimisha1
Participating Frequently
September 1, 2014

Thanks Ron for sharing the sample app but the behavior of your app is same whether I use -useLegacyAOT yes or no. I can see the Uncompiled ActionScript Dialog with both packagers.