Skip to main content
Feb 2, 2015 11:25 AM UTC
Question

Air16 iOS packaging issue

When I starts using air16 I get an unusual runtime error on iOS 8.1.2. It looks like code generating issue due to Android variant works well.

I have a project that consists of many swfs containing resources and a bit of AS code. I pack them using adt to make it possible to load them later.

After I moved to air16 (from air15) I encountered a runtime error:

[Fault] exception, information=ReferenceError: Error #1074: Illegal write to read-only property AGENT_CLASS on class game.agents.presentation.lines.AgentLinesSimplePresentation.

Where AGENT_CLASS is the static constant defined like that.

public class AgentLinesSimplePresentation extends AgentPresentationBase

{

        static public const AGENT_CLASS: Class = AgentLinesSimplePresentation;

         ....

}

useLegacyAOT=no/yes doesn't matter.

The stack top is

air16-crush-stack-trace.png

What is this and how to avoid?

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

chris.campbell
Legend
Feb 2, 2015 11:50 PM UTC

Could we get both a bug report (https://bugbase.adobe.com) and a sample project so we can reproduce this internally.  If you'd like to keep the project private, please feel free to email it to me (ccampbel@adobe.com), along with the bug report number, and I'll make sure only the team sees it.

Thanks,

Chris

Translate
Feb 4, 2015 9:11 AM UTC

Unfortunately, I can't provide an example reproducing the issue right now, may be a bit later. But I had similar code generating issue while using air15 + useLegacyAOT=no. The details available here Apache Flex Users - iOS packaging issue within Flex SDK 4.13 & air 15. The sample project archive is here http://apache-flex-users.2333346.n4.nabble.com/file/n8980/apache-flex-sdk-ios-packaging-bug.zip.

Hope it will be useful.

Translate
chris.campbell
Legend
Feb 5, 2015 2:21 AM UTC

Thanks, I've forwarded this along to our team.  Not sure if both are the same issue, but we'll try and take a look.

Could you also do us a favor and try out the v17 beta that we released this afternoon?

Adobe AIR 17 Beta | application development - Adobe Labs

Translate