Skip to main content
January 14, 2013
Question

Differences between AIR 3.4 & 3.5 - iOS

  • January 14, 2013
  • 2 replies
  • 866 views

I've been having big problems trying to get a sucessful build for iOS for a swf with 2 ANEs using AIR 3.5.


Does anyone know if there are any differences between 3.4 and 3.5 that would cause a major slow down/crash in iOS applications compiled in 3.5?

I have no problems at all with 3.1, 3.3 and 3.4.
However, when I use 3.5, I either get a compile warning:
"ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE...."
With this warning, the app does not work.

Or it compiles with no warning. When the app compiles without the warning, it will freeze almost imediately after loading.

For the SWF, I compile with AIR 3.4 and 3.5 - both command line and in FlexBuilder. I notice that when I compile
with 3.5, the SWF is significantly larger.
For 3.5, I have tried various combinations of the compiler option '-swf-version=17' (basically used 15,16,17 and 18).
I have tried all the various options in  the Application.xml header -
<application xmlns="http://ns.adobe.com/air/application/3.4"> - 3.1, 3.4, 3.5

For the ANEs, I have compiled with the 4.3, 5.0, 5.1 and 6.0 SDKs. I have changed the XML descriptor header - 3.1, 3.4 ,3.5 etc.

This topic has been closed for replies.

2 replies

January 14, 2013

The only major difference between AIR 3.4 and 3.5 as far as ANEs are concerned is that AIR 3.4 uses iOS SDK 5.1, while 3.5 uses iOS SDK 6.0.

So, the crash could be due to an API change by Apple across these SDK versions.

The warning you are getting is usually harmless.

Do you get a crash even if you use iOS SDK 6.0 (using platformsdk switch) with AIR SDK 3.4?

January 14, 2013

Thanks a lot Neh!

What you say is basically what I thought - but I didn't think of using 3.4 with platformsdk 6.0 - good idea - I will try it in the morning.

One other point is the size of the swf. When I compile with 3.5 (even excluding the actionscript 2.0 compiler), the swf is about 500k bigger - does this ring any bells for you?

Mac