Skip to main content
Known Participant
July 4, 2013
Question

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

  • July 4, 2013
  • 1 reply
  • 6443 views

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

1 reply

Known Participant
July 5, 2013

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.

July 5, 2013

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

Known Participant
July 5, 2013

Boom, wow, thanks!