Skip to main content
Participant
July 17, 2012
Question

Linking ios Libreary issues

  • July 17, 2012
  • 1 reply
  • 608 views

I am currently working on abode air for making an app for ios.

I am trying to add Tapjoy and it requires two framework MediaPlayer.framework and CCTelephoneNetwork.framework

i have added them in my xcode project in build phases -> link binary with libraries

also i have tried platform options with -F full path

it creates .ane file but when i use it it gives me this error

<platform xmlns="http://ns.adobe.com/air/extension/3.1">

    <sdkVersion>5.1</sdkVersion>

    <linkerOptions>

        <option>-framework Foundation</option>

        <option>-framework UIKit</option>

        <option>-framework QuartzCore</option>

        <option>-framework CoreGraphics</option>

        <option>-F /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/System/Library/Frameworks</option>

        <option>-framework MediaPlayer</option>

        <option>-framework CoreTelephony</option>

    </linkerOptions>

</platform>

also tired to use the platform options thing but still i am getting the above error.

Please let me know what i am doing wrong

i have been using native extensions for ios for a while and created few of them that are working fine but just this one is giving me this issue i am not able to figure it out

any help would be appreciated.

This topic has been closed for replies.

1 reply

July 19, 2012

Hi Darshan,

You need to build your static library for armv7 architecture only. (i.e. remove armv6 from the architecture in Xcode settings).

This should resolve your issue.

DarshanRAuthor
Participant
July 20, 2012

i am sure i am using arm7 arc only i think its more issue of adding another libraries. for eg over here is Media player framework is issue. i am adding it like this let me know if this is the right way to do it.

<platform xmlns="http://ns.adobe.com/air/extension/3.1">

    <sdkVersion>5.1</sdkVersion>

    <linkerOptions>

        <option>framework MediaPlayer</option>

    </linkerOptions>

</platform>

July 20, 2012

Hi Darshan,

Your platform descriptor has a minor error:

-framework should be used instead of framework.

The error you are getting is usually due to architecture mismatch. I would suggest that you check your xcode project settings and search for armv6.

Replace all instances by armv7.