6 Replies Latest reply: Feb 6, 2012 5:29 PM by chris.campbell RSS

    Creating a native extension that needs to link to libicucore.dylib

    Michelle_vey

       

      I'm trying to get ADT to link with libicucore.dylib and I've read http://blogs.adobe.com/rajorshi/2011/11/16/ios5-support-for-airusing-external-sdks-to-pack age-apps/ multiple times.

       

      I've created a file called platformoptions.xml that looks like:

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

           <sdkVersion>5.0</sdkVersion>
           <linkerOptions>
                <option>-licucore</option>
           </linkerOptions>
      </platform>


      And I've added -platformoptions platformoptions.xml to my ane build script, so it looks like:

      ../../../AdobeAIRSDK/bin/adt -package -target ane myNativeExtension.ane extension.xml -swc myNativeExtension.swc -platform iPhone-ARM library.swf myNativeExtension.a -platformoptions platformoptions.xml

       

      I've also added the following to the command line when packaging the application using ADT -platformsdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/, so it looks like:

      ../../AdobeAIRSDK/bin/adt -package -target ipa-debug -connect 10.0.1.7 -storetype pkcs12 -keystore "./iphone_dev.p12" -storepass *** -provisioning-profile "./my.mobileprovision" "myLibTester.ipa" "myLibTester-app.xml" "BFGLibTester.swf" "icon" "Default@2x~iphone.png" "Default~iphone.png" "Default-Landscape.png" "Default-Portrait.png" -extdir "./extensions" -platformsdk "/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk/"

       

      But I’m still getting undefined symbols for everything from that library:

      "_uregex_appendTail", referenced from:

            _rkl_replaceAll in libcom.my.NativeExtensions.ios.mylibNativeExtension.a(RegexKitLite.o)

      etc...

       

      Any advice would be appreciated.

       

      Thanks,

       

      Michelle