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-e xternal-sdks-to-package-apps/ multiple times.
I've created a file called platformoptions.xml that looks like:
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.sd k/"
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)
Any advice would be appreciated.
I was including the framework libicucore.dylib in the project, but I don't think you can add -licucore to a static library or you'll get linker errors. -licucore is not an object file (not allowed in a library). Including the framework was just because I was being paranoid and I think it is ignored. Typically you only need to add framework or -licucore to application including the static library.
Do you know of a way to add -licucore to static library when building in xcode? Have you seen this work in creating the final application?
Any thoughts? This is has completely stopped our progress so any help would be great.
Thanks for getting back to me.
Yes, I completely understand what you are asking and it's not possible to add that to other linker flags when you are building a static library. You can try it yourself (as I did to confirm) by creating a new project ->static library and building. Then add -licucore to other linker flag and try to build. You will see the errors. If not, please let me know what I am doing wrong.
Could you please take the time to get this working on your end and advise the best solution. You documentation on this is very sparse and I feel you have left your developers with limited resources for working through these issues.
I'm sure others will benefit from the solution as well.
Hi Neh -
Feel free to send them via email to me (firstname.lastname@example.org) and I can forward them along to the appropriate person or you can send me a dropbox link. Our corporate firewall typically blocks attachments for most people but I've had my email settings changed so that these get through to me.