Skip to main content
December 25, 2013
Answered

Xpath query using ANE with AIR3.9 for iOS app

  • December 25, 2013
  • 1 reply
  • 642 views

we are building an app for iOS using AIR 3.9 where we have to load and parse the xml document so that we can read the images path and download the stuff on iOS device. To fix this issue we have found a solution using XCode via ANE where by using XPath Query classes such as "PerformXPathQuery", "PerformXMLXPathQuery", "xmlReadMemory" etc. The code is running well when build on simulator itself on mac machine. But when we are packaging the ANE with AIR 3.9, it gives us the error which says that:-

Error occurred while packaging the application:

Undefined symbols for architecture armv7:

  "_xmlReadMemory", referenced from:

      _PerformXMLXPathQuery in libnet.example.download.a(ExampleLib.o)

ld: symbol(s) not found for architecture armv7

Compilation failed while executing : ld64

I have tried linking binary with libraries like "libxml2.dylib", "libxml2.2.dylib" and libz.dylib + added the libXML header files to the header search path in the build properties, but got no help.

our AIR 3.9 platform xml looks like:-

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

    <sdkVersion>4.0.0</sdkVersion>

    <linkerOptions>

        <option>-ios_version_min 4.2</option>

        <option>-framework UIKit</option>

        <option>-framework Foundation</option>

        <option>-framework CoreText</option>

    </linkerOptions>

</platform>

can anyone suggest where we are going wrong!

thanks in advance

This topic has been closed for replies.
Correct answer

Found the solution, i was missing the framework related to xPath library in platform.xml

follow the instuctions from the below link:-

http://forums.adobe.com/thread/1037904

thanks adobe team

1 reply

Correct answer
December 27, 2013

Found the solution, i was missing the framework related to xPath library in platform.xml

follow the instuctions from the below link:-

http://forums.adobe.com/thread/1037904

thanks adobe team