Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
The secondary SWF used in the app "Gingerbread.swf" does contain abc code because of AS linkage and which is why Uncompiled ActionScript Dialog is coming up. To use external SWFs on iOS please refer following links:
Thanks,
Nimisha