2011-11-07 14 views
15

मैं किसी भी libxml आधारित तृतीय पक्ष XML पार्सर्स का उपयोग करने का प्रयास कर रहा हूं, लेकिन मुझे नहीं लगता क्योंकि मुझे लगता है कि मेरे पास libxml2 समस्या है तरहआईफोन libxml2 अपरिभाषित प्रतीकों (gdata, kissxml, touchxml, आदि के साथ)

मैं अपने अन्य लिंकर झंडे -lxml2

को हैडर खोज पथ करने के लिए सेट और/usr// libxml2

लेकिन जब मैं संकलन करने की कोशिश मैं अभी भी अपरिभाषित प्रतीकों में से एक टन मिल शामिल हैं। नीचे दी गई त्रुटियां TouchXML को संकलित करने का प्रयास करने का परिणाम हैं।

Undefined symbols: 
    "_xmlDocDumpFormatMemory", referenced from: 
     -[CXMLDocument description] in CXMLDocument.o 
    "_xmlXPathNewContext", referenced from: 
     -[CXMLNode nodesForXPath:error:] in CXMLNode.o 
     -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o 
    "_xmlOutputBufferFlush", referenced from: 
     -[CXMLNode XMLStringWithOptions:] in CXMLNode.o 
    "_xmlNodeListGetString", referenced from: 
     -[CXMLNode stringValue] in CXMLNode.o 
    "_xmlFree", referenced from: 
     _xmlFree$non_lazy_ptr in CXMLDocument.o 
     _xmlFree$non_lazy_ptr in CXMLNode.o 
    (maybe you meant: _xmlFree$non_lazy_ptr) 
    "_xmlXPathFreeContext", referenced from: 
     -[CXMLNode nodesForXPath:error:] in CXMLNode.o 
     -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o 
    "_xmlNodeDumpOutput", referenced from: 
     -[CXMLNode XMLStringWithOptions:] in CXMLNode.o 
    "_xmlAddChild", referenced from: 
     -[CXMLDocument(CXMLDocument_CreationExtensions) addChild:] in CXMLDocument_CreationExtensions.o 
     -[CXMLElement(CXMLElement_CreationExtensions) addChild:] in CXMLElement_CreationExtensions.o 
     -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o 
    "_xmlDocSetRootElement", referenced from: 
     +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o 
    "_xmlFreeNode", referenced from: 
     -[CXMLNode dealloc] in CXMLNode.o 
    "_xmlXPathEvalExpression", referenced from: 
     -[CXMLNode nodesForXPath:error:] in CXMLNode.o 
     -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o 
    "_xmlStrcmp", referenced from: 
     -[CXMLElement elementsForName:] in CXMLElement.o 
     -[CXMLElement attributeForName:] in CXMLElement.o 
    "_xmlParseDoc", referenced from: 
     -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o 
    "_xmlCopyNode", referenced from: 
     -[CXMLNode copyWithZone:] in CXMLNode.o 
    "_xmlOutputBufferClose", referenced from: 
     -[CXMLNode XMLStringWithOptions:] in CXMLNode.o 
    "_xmlAddPrevSibling", referenced from: 
     -[CXMLDocument(CXMLDocument_CreationExtensions) insertChild:atIndex:] in CXMLDocument_CreationExtensions.o 
    "_xmlDocDumpMemory", referenced from: 
     -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o 
    "_xmlNewDoc", referenced from: 
     +[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o 
     +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o 
    "_xmlNewText", referenced from: 
     -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o 
    "_xmlXPathFreeObject", referenced from: 
     -[CXMLNode nodesForXPath:error:] in CXMLNode.o 
     -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o 
    "_xmlGetLastError", referenced from: 
     -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o 
    "_xmlNewPI", referenced from: 
     +[CXMLNode(CXMLNode_CreationExtensions) processingInstructionWithName:stringValue:] in CXMLNode_CreationExtensions.o 
    "_xmlSetNs", referenced from: 
     -[CXMLElement(CXMLElement_CreationExtensions) addNamespace:] in CXMLElement_CreationExtensions.o 
    "_xmlReadMemory", referenced from: 
     -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o 
    "_xmlNewNs", referenced from: 
     +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o 
     +[CXMLNode(CXMLNode_CreationExtensions) namespaceWithName:stringValue:] in CXMLNode_CreationExtensions.o 
    "_xmlResetLastError", referenced from: 
     -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o 
    "_xmlOutputBufferCreateIO", referenced from: 
     -[CXMLNode XMLStringWithOptions:] in CXMLNode.o 
    "_xmlNewNode", referenced from: 
     +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:] in CXMLNode_CreationExtensions.o 
     +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o 
     +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:stringValue:] in CXMLNode_CreationExtensions.o 
    "_xmlDocGetRootElement", referenced from: 
     -[CXMLDocument rootElement] in CXMLDocument.o 
    "_xmlXPathRegisterNs", referenced from: 
     -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o 
    "_xmlFreeDoc", referenced from: 
     -[CXMLDocument dealloc] in CXMLDocument.o 
ld: symbol(s) not found 

उत्तर

44

मुझे यह समस्या थी। जब मैंने पुस्तकालय के साथ बाइनरी को जोड़ा तो यह चला गया।

जाओ लक्ष्य बनाने के लिए -> निर्माण के चरण -> लाइब्रेरी के साथ लिंक बाइनरी, "libxml2.dylib"

enter image description here

+0

बहुत बढ़िया है, धन्यवाद धन चिह्न पर क्लिक करें और जोड़ने! – dougalg

+0

सही उत्तर! – Philipp

+0

मैंने पॉड को हटा दिया है और फिर फ्रेमवर्क त्रुटि मैन्युअल रूप से खींचें जो इस त्रुटि का कारण बन रहा था लेकिन आपका समाधान बिल्कुल सही है। धन्यवाद –

संबंधित मुद्दे