Skip to main content
Inspiring
June 10, 2015
Question

Error embedding iOS third party library inside an ANE

  • June 10, 2015
  • 1 reply
  • 432 views

Hi,

I'm, trying to create a ANE file embedding a third party library, but I'm encountering this problem.

Seems files AWSSQS.framework, AWSRuntime.framework are not found because they are not compiled properly. BUT lip -info shows correct information

lipo -info ./AWSRuntime.framework/AWSRuntime

Architectures in the fat file: ./AWSRuntime.framework/AWSRuntime are: i386 x86_64 armv7 armv7s arm64

My platform-options is:

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

    <linkerOptions>

        <option>-ios_version_min 5.1.1</option>

            <option>-framework QuartzCore</option>

            <option>-framework AudioToolbox</option>

            <option>-framework CoreGraphics</option>

            <option>-framework UIKit</option>

            <option>-framework Foundation</option>

    </linkerOptions>

    <packagedDependencies>

        <packagedDependency>AWSRuntime.framework</packagedDependency>

       <packagedDependency>AWSSQS.framework</packagedDependency>

        <packagedDependency>libAppoxee_ios_32bit_64bit_sdk_v3.2.4.a</packagedDependency>

    </packagedDependencies>

</platform>

Any ideas? I'm blocked.

Thanks!

This topic has been closed for replies.

1 reply

Inspiring
June 11, 2015

From all the "solutions" found on internet, this is the only one I haven't tried yet

http://stackoverflow.com/questions/20419295/unable-to-use-parse-library-parse-linker-warning-file-was-built-for-unsupporte

But I don't really know what ""Parse.framework/Parse" is a link. And the complier can not use it.Replace all the links with real file and it works fine." exactly means. Do you know how to proceed?

Inspiring
June 11, 2015

Ok, finally found out the problem.

Inside the framework file the accesed file is a link. So the compiler can't find the information and it crashes.

You need to open the file, navigate through the folders (it uses to be Framework/Versions/A/FrameworkName) and replace the link with the file founded there.