• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

[SOLVED] building an ane which include third party framework and using it

Community Beginner ,
Dec 05, 2013 Dec 05, 2013

Copy link to clipboard

Copied

I made a ane which using third party framework.  Without packing the framework into ane, the ane works fine, and using the framework directly in xcode, it works perfectly too.

But when pack the framework into ane, I got the error when using it to build a ipa:

ld: warning: ignoring file /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-9 09f-5c219b2fbcd4/Partytrack.framework/Partytrack, file was built for unsupported file format ( 0x56 0x65 0x72 0x73 0x69 0x6f 0x6e 0x73 0x2f 0x43 0x75 0x72 0x72 0x65 0x6e 0x74 ) which is not the architecture being linked (armv7): /var/folders/c0/m8m1_z5915qblkj9d_7jhmcw0000gn/T/3cb383e9-0092-4b1c-9 09f-5c219b2fbcd4/Partytrack.framework/Partytrack

ld: warning: CPU_SUBTYPE_ARM_ALL subtype is deprecated: /Users/apple/Documents/flexsdk/flex3.9/lib/aot/lib/libDebugger1.arm-a ir.a(avmplusDebugger.cpp.o)

Undefined symbols for architecture armv7:"_OBJC_CLASS_$_Partytrack", referenced from:objc-class-ref in libcom.haibin.extension.PromotionAPI.a(partyTrackAPI.o)

ld: symbol(s) not found for architecture armv7

Compilation failed while executing : ld64

The message "is not the architecture being linked (armv7)" is wrong because i using lipo command and get the framework info:

lipo -info Partytrack.framework/Partytrack

Architectures in the fat file: Partytrack.framework/Partytrack are: armv7 armv7s i386

So is it can't find the framework file?

--------

I'm using Air 3.9

This is how i build the ane:

My platformoptions.xml file content:

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

    <sdkVersion>7.0</sdkVersion>

    <linkerOptions>

        <option>-ios_version_min 4.3</option>

        <option>-framework CoreData</option>

        <option>-framework UIKit</option>

        <option>-framework Foundation</option>

        <option>-framework Security</option>

        <option>-weak_framework AdSupport</option>

    </linkerOptions>

    <packagedDependencies>

        <packagedDependency>Partytrack.framework</packagedDependency>

    </packagedDependencies>

</platform>

And my build command are:


<target name="package" description="Create the extension package">
    <exec executable="${FLEX_HOME}/bin/adt" failonerror="true" dir="../">
        <env key="AIR_SDK_HOME" value="${FLEX_HOME}"/>
        <arg value="-package"/>
        <arg line="-storetype pkcs12"/>
        <arg line="-keystore build/testkey.p12"/>
        <arg line="-storepass 123456"/>
        <arg line="-target ane"/>
        <arg value="${ANE_NAME}.ane"/>
        <arg value="build/extension.xml"/>
        <arg line="-swc swc/${ANE_NAME}.swc"/>
        <arg line="-platform iPhone-ARM -platformoptions build/platform.xml -C ios/ . "/>
        <arg line="-platform Android-ARM -C android/ ."/>
        <arg line="-platform default -C default/ ."/>
    </exec>

</target>

File "Partytrack.framework " is in the directory "ios"

I unzip the ane file and see the file Partytrack.framework is successfully packed into it.

&: I use flash builder to build a ipa. 

TOPICS
Performance issues

Views

2.7K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 05, 2013 Dec 05, 2013

Copy link to clipboard

Copied

I have figure out this problem.

The file "Partytrack.framework/Partytrack" is a link. And the complier can not use it. I replace all the links with real file and it works fine.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

a got some error when build ipa:

Error occurred while packaging the application:

Undefined symbols for architecture armv7:

  "__ZNKSt3__120__vector_base_commonILb1EE20__throw_length_errorEv", referenced from:

      __ZNSt3__16vectorIPhNS_9allocatorIS1_EEE8__appendEm in AppotaSDK(dmz_all.o)

      __ZNSt3__16vectorIN2cv3VecIiLi128EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      __ZNSt3__16vectorIN2cv3VecIiLi64EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      __ZNSt3__16vectorIN2cv3VecIiLi32EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      __ZNSt3__16vectorIN2cv3VecIiLi16EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      __ZNSt3__16vectorIN2cv3VecIiLi12EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      __ZNSt3__16vectorIN2cv3VecIiLi9EEENS_9allocatorIS3_EEE8__appendEm in AppotaSDK(matrix.o)

      ...

  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEC1ERKS5_", referenced from:

      __ZN2cv9ExceptionC1EiRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_S9_i in AppotaSDK(system.o)

      __ZN2cv5errorERKNS_9ExceptionE in AppotaSDK(system.o)

      _cvRegisterModule in AppotaSDK(system.o)

  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev", referenced from:

      __Z37_DMZ_fc25492ba21335d69fb04c299b9af1e0P9_IplImageh in AppotaSDK(dmz_all.o)

      __ZL37_DMZ_9eb98eef37ddfbe246ec282eedb142fcP9_IplImageP37_DMZ_200145a25bf71dde0e26f96431feb196 in AppotaSDK(dmz_all.o)

      __ZN2cv4meanERKNS_11_InputArrayES2_ in AppotaSDK(stat.o)

      __ZN2cv9minMaxIdxERKNS_11_InputArrayEPdS3_PiS4_S2_ in AppotaSDK(stat.o)

      __ZN2cv9minMaxLocERKNS_11_InputArrayEPdS3_PNS_6Point_IiEES6_S2_ in AppotaSDK(stat.o)

      __ZN2cv4normERKNS_11_InputArrayEiS2_ in AppotaSDK(stat.o)

      _cvAvg in AppotaSDK(stat.o)

      ...

  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEaSERKS5_", referenced from:

      __ZN2cv9Exception13formatMessageEv in AppotaSDK(system.o)

  "__ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm", referenced from:

      __Z37_DMZ_fc25492ba21335d69fb04c299b9af1e0P9_IplImageh in AppotaSDK(dmz_all.o)

      __ZL37_DMZ_9eb98eef37ddfbe246ec282eedb142fcP9_IplImageP37_DMZ_200145a25bf71dde0e26f96431feb196 in AppotaSDK(dmz_all.o)

      __ZN2cv4meanERKNS_11_InputArrayES2_ in AppotaSDK(stat.o)

      __ZN2cv9minMaxIdxERKNS_11_InputArrayEPdS3_PiS4_S2_ in AppotaSDK(stat.o)

      __ZN2cv9minMaxLocERKNS_11_InputArrayEPdS3_PNS_6Point_IiEES6_S2_ in AppotaSDK(stat.o)

      __ZN2cv4normERKNS_11_InputArrayEiS2_ in AppotaSDK(stat.o)

      _cvAvg in AppotaSDK(stat.o)

      ...

ld: symbol(s) not found for architecture armv7

Compilation failed while executing : ld64

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 07, 2014 Jul 07, 2014

Copy link to clipboard

Copied

some one help me!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 01, 2015 Jan 01, 2015

Copy link to clipboard

Copied

LATEST

Hi, did you resolve this issue. I am seeing same w iOS 8.1 for new xCode.

Thanks,

-B

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines