Skip to main content
Known Participant
Jul 4, 2013 10:10 PM UTC
Question

AIR 3.8, iOS Packaging Failed: "Compilation failed while executing : ld64"

Since upgrading to AIR 3.8, we can no longer package our AIR Application.

We are getting the following error:

internal_package-ios:

     [exec] ld: -pie can only be used when targeting iOS 4.2 or later

     [exec] Compilation failed while executing : ld64

Screenshot Here: http://cl.ly/image/3h2U1g271n1J

Reverting to AIR 3.7 fixes the issue... but we need 3.8 as we need the 4096 texture support that comes with BASELINE_EXTENDED profile.

From googling, this seems like it's related to the iOS SDK included with AIR, but the issue was fixed in AIR 3.7. Seems it has been regressed...

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

5 replies

Known Participant
Jul 5, 2013 4:24 AM UTC

Looks like its related to this ANE.

https://github.com/alebianco/ANE-Google-Analytics

Just including that, and trying to publish a Fast Build for IOS, w/ AIR 3.8, should reproduce the error.

Translate
Jul 5, 2013 5:33 AM UTC

Hi Shawn,

Since AIR 3.8, we support only PIE enabled binaries, as per Apple recommendation.

For this, the minimum supported iOS version is 4.2. The ANE you are using specifies a minimum iOS version of 4.0 in its platform-iphone.xml, present at: https://github.com/alebianco/ANE-Google-Analytics/blob/master/build/platform-iphone.xml

You will need to change the line:

<option>-ios_version_min 4.0</option>

to:

<option>-ios_version_min 4.2</option>

and rebuild the ANE to make it work.

Regards,

Neha

Translate
Known Participant
Jul 5, 2013 6:05 AM UTC

Boom, wow, thanks!

Translate