Skip to main content
February 2, 2015
Question

Air16 iOS packaging issue

  • February 2, 2015
  • 1 reply
  • 966 views

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 has been closed for replies.

1 reply

chris.campbell
Community Manager
Community Manager
February 2, 2015

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

February 4, 2015

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.

chris.campbell
Community Manager
Community Manager
February 5, 2015

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