Skip to main content
Inspiring
December 10, 2013
Question

Problem with ANE - "ld: -pie can only be used when targeting iOS 4.2 or later"

  • December 10, 2013
  • 8 replies
  • 1895 views

I'm trying to compile a simple AIR Mobile app for iOS, incorporating an ANE to support Localytics

http://flashsimulations.com/2012/06/18/localytics-adobe-air-native-extension/

Compilation fails with the message "ld: -pie can only be used when targeting iOS 4.2 or later"

Surely 7.0 is later than 4.2! (I'm using Flex 4.6 - AIR 3.9 SDKS). Tried building with FDT and with Flash CC, and against earlier versions of the iOS SDK (6.0, 5.0).

Any suggestions?

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

8 replies

Colin Holgate
Inspiring
December 10, 2013

In the iPhone part of the app descriptor you can set the minimum by adding this key:

4.3</string

macandrewAuthor
Inspiring
December 10, 2013

thanks, but can you be more specific? Presumably I add something in this part:

    <iPhone>

        <InfoAdditions><![CDATA[<key>UIDeviceFamily</key>

                                              <array>

                                                  <string>1</string>

                                                  <string>2</string>

                                              </array>

                                              <key>UIStatusBarStyle</key>

                                              <string>UIStatusBarStyleBlackOpaque</string>

                                              <key>UIRequiresPersistentWiFi</key>

                                              <string>YES</string>]]></InfoAdditions>

        <requestedDisplayResolution>high</requestedDisplayResolution>

    </iPhone>

Colin Holgate
Inspiring
December 10, 2013

The XML didn’t get to the forum intact! You see how there are key/string combinations in what you wrote? Make aother one of those (within InfoAdditions), where the key is MinimumOSVersion and the string is 4.3. I'll try pasting that again:

<key>MinimumOSVersion</key>

<string>4.3</string>