Problem with iOS ANE and third party library
Hello everyone, we are trying to generate an ANE that includes a third party library for visualizing pdf documents. The library works fine without ANE integration, and also the ANE itself works without the library.
The problem seems to occur while linking:
[java] # Generating executable...
[java] /Users/rsanchez/Dev/flex_sdk_4.6/lib/aot/bin/ld64/ld64 -ObjC -dead_strip -Z -arch armv7 -syslibroot "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk" -L/usr/lib -F"/System/Library/Frameworks" -L"/Users/rsanchez/Dev/flex_sdk_4.6/lib/aot/lib" -o "../aot6539214514669007088.tmp" -exported_symbol _main "extensionglue.o" -non_global_symbols_no_strip_list "/Users/rsanchez/Dev/flex_sdk_4.6/lib/aot/lib/local_nostrip.arm-air.txt" -ios_version_min 4.3 "/Users/rsanchez/Dev/flex_sdk_4.6/lib/aot/lib/libRuntimeInterpreter.arm-air.a" -lgcc_s.1 -lSystem.B -lstdc++.6 -lcrt1.o -lz -lobjc -framework CoreFoundation -framework UIKit -framework MobileCoreServices -framework CoreGraphics -framework Foundation -framework SystemConfiguration -framework AudioToolbox -framework CFNetwork -framework QuartzCore -framework OpenGLES -framework CoreLocation -framework CoreMedia -framework CoreVideo -framework AVFoundation -framework Security -ios_version_min 5.1 -framework CFNetwork -framework CoreText -framework QuartzCore -framework Security -framework CoreGraphics -framework Foundation -framework UIKit -lcom.mobbeel.example.pdfane.ExamplePDFANE -L/var/folders/vr/z65d15r17cl0n9cy3_7r66tc0000gn/T/728b1415-e666-4c32-864e-5b923c4a7d30 -F/var/folders/vr/z65d15r17cl0n9cy3_7r66tc0000gn/T/728b1415-e666-4c32-864e-5b923c4a7d30 -exported_symbol _ExtInitializer -exported_symbol _ExtFinalizer -force_load "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/../../../../../../Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a"
[java] ld: in /var/folders/vr/z65d15r17cl0n9cy3_7r66tc0000gn/T/728b1415-e666-4c32-864e-5b923c4a7d30/libcom.mobbeel.example.pdfane.ExamplePDFANE.a(SWIGTYPE_p_void.o), archive member 'SWIGTYPE_p_void.o' with length 3440 is not mach-o or llvm bitcode for architecture armv7
[java] com.adobe.air.ipa.ProcessError: Unable to generate executable
[java] at com.adobe.air.ipa.AOTCompiler.launchProcess(AOTCompiler.java:311)
[java] at com.adobe.air.ipa.AOTCompiler.linkMachO(AOTCompiler.java:1764)
[java] at com.adobe.air.ipa.AOTCompiler.generateMachineBinaries(AOTCompiler.java:1914)
[java] at com.adobe.air.ipa.IPAOutputStream.createIosBinary(IPAOutputStream.java:431)
[java] at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:825)
[java] at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:91)
[java] at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:257)
[java] at com.adobe.air.ADT.parseArgsAndGo(ADT.java:588)
[java] at com.adobe.air.ADT.run(ADT.java:435)
[java] at com.adobe.air.ADT.main(ADT.java:485)
[java] Compilation failed while executing : ld64
[java] Java Result: 12
Anyone can give any clue of what can be happening or what type of problem could have the third party library that triggers the problem?
Thank you very much for your help.
Regards.
