Xcode 4.6中的ePub Reader错误

时间:2013-03-22 08:34:54

标签: ios6 epub xcode4.6 libxml2

我下载了一个名为AePubReader的开源epub阅读器,它的工作正常。但是当我尝试在xcode 4.6中集成我的应用程序时,由于ARC,它显示了很多错误。所以我选择了那些文件并设置了#34; - FNO-objc弧&#34;但之后它显示的错误如#include <libxml/tree.h> not found![this is the error i got ][1]
$(SDK_DIR)&#34; / usr / include / libxml2我添加了这一行然后问题解决了,但之后它显示了&#34; 43错误&#34;像&#34; Apple Mach-O链接器错误&#34;其中大多数与xml文件相关

我的错误消息

架构i386的未定义符号:   &#34; _htmlParseDoc&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]

&#34; _htmlReadMemory&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLData:encoding:options:error:]   &#34; _xmlAddChild&#34;,引自:        - CXMLDocument_CreationExtensions.o中的[CXMLDocument(CXMLDocument_CreationExtensions)addChild:]        - CXMLElement_CreationExtensions.o中的[CXMLElement(CXMLElement_CreationExtensions)addChild:]        - CXMLElement_CreationExtensions.o中的[CXMLElement(CXMLElement_CreationExtensions)setStringValue:]   &#34; _xmlAddPrevSibling&#34;,引自:        - CXMLDocument_CreationExtensions.o中的[CXMLDocument(CXMLDocument_CreationExtensions)insertChild:atIndex:]   &#34; _xmlCopyNode&#34;,引自:        - CXMLNode.o中的[CXMLNode copyWithZone:]

"_xmlDocDumpFormatMemory", referenced from:
  -[CXMLDocument description] in CXMLDocument.o

&#34; _xmlDocDumpMemory&#34;,引自:        - CXMLDocument.o中的[CXMLDocument XMLDataWithOptions:]   &#34; _xmlDocGetRootElement&#34;,引自:        - CXMLDocument.o中的[CXMLDocument initWithData:encoding:options:error:]        - CXMLDocument.o中的[CXMLDocument rootElement]   &#34; _xmlDocSetRootElement&#34;,引自:       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)documentWithRootElement:]        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]   &#34; _xmlFree&#34;,引自:        - CXMLDocument.o中的[CXMLDocument XMLDataWithOptions:]        - CXMLDocument.o中的[CXMLDocument description]   &#34; _xmlFreeDoc&#34;,引自:        - CXMLDocument.o中的[CXMLDocument dealloc]   &#34; _xmlFreeNode&#34;,引自:        - CXMLNode.o中的[CXMLNode dealloc]   &#34; _xmlGetCharEncodingName&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]   &#34; _xmlGetLastError&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLDocument.o中的[CXMLDocument initWithXMLString:options:error:]        - CXMLDocument.o中的[CXMLDocument initWithData:encoding:options:error:]

"_xmlNewDoc", referenced from:
  +[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o
  +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o

&#34; _xmlNewNode&#34;,引自:       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)elementWithName:]       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)elementWithName:URI:]       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)elementWithName:stringValue:]   &#34; _xmlNewNs&#34;,引自:       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)elementWithName:URI:]   &#34; _xmlNewPI&#34;,引自:       CXMLNode_CreationExtensions.o中的+ [CXMLNode(CXMLNode_CreationExtensions)processingInstructionWithName:stringValue:]   &#34; _xmlNewText&#34;,引自:        - CXMLElement_CreationExtensions.o中的[CXMLElement(CXMLElement_CreationExtensions)setStringValue:]   &#34; _xmlNodeDumpOutput&#34;,引自:        - CXMLNode.o中的[CXMLNode XMLStringWithOptions:]   &#34; _xmlNodeSetContent&#34;,引自:        - CXMLNode_CreationExtensions.o中的[CXMLNode(CXMLNode_CreationExtensions)setStringValue:]   &#34; _xmlOutputBufferClose&#34;,引自:        - CXMLNode.o中的[CXMLNode XMLStringWithOptions:]   &#34; _xmlOutputBufferCreateIO&#34;,引自:        - CXMLNode.o中的[CXMLNode XMLStringWithOptions:]   &#34; _xmlOutputBufferFlush&#34;,引自:        - CXMLNode.o中的[CXMLNode XMLStringWithOptions:]   &#34; _xmlParseDoc&#34;,引自:        - CXMLDocument.o中的[CXMLDocument initWithXMLString:options:error:]   &#34; _xmlReadMemory&#34;,引自:        - CXMLDocument.o中的[CXMLDocument initWithData:encoding:options:error:]   &#34; _xmlResetLastError&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLDocument.o中的[CXMLDocument initWithXMLString:options:error:]        - CXMLDocument.o中的[CXMLDocument initWithData:encoding:options:error:]   &#34; _xmlSetNs&#34;,引自:        - CXMLElement_CreationExtensions.o中的[CXMLElement(CXMLElement_CreationExtensions)addNamespace:]   &#34; _xmlStrcmp&#34;,引自:        - CXMLElement.o中的[CXMLElement elementsForName:]        - CXMLElement.o中的[CXMLElement elementsForLocalName:URI:]        - CXMLElement.o中的[CXMLElement attributeForName:]        - CXMLElement.o中的[CXMLElement attributeForLocalName:URI:]        - CXMLElement.o中的[CXMLElement namespaceForPrefix:]        - CXMLElement.o中的[CXMLElement resolvePrefixForNamespaceURI:]   &#34; _xmlXPathEvalExpression&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLNode_XPathExtensions.o中的[CXMLNode(CXMLNode_NamespaceExtensions)nodesForXPath:namespaceMappings:error:]        - CXMLNode.o中的[CXMLNode nodesForXPath:error:]   &#34; _xmlXPathFreeContext&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLNode_XPathExtensions.o中的[CXMLNode(CXMLNode_NamespaceExtensions)nodesForXPath:namespaceMappings:error:]        - CXMLNode.o中的[CXMLNode nodesForXPath:error:]   &#34; _xmlXPathFreeObject&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLNode_XPathExtensions.o中的[CXMLNode(CXMLNode_NamespaceExtensions)nodesForXPath:namespaceMappings:error:]        - CXMLNode.o中的[CXMLNode nodesForXPath:error:]   &#34; _xmlXPathNewContext&#34;,引自:        - CXHTMLDocument.o中的[CXHTMLDocument initWithXHTMLString:options:error:]        - CXMLNode_XPathExtensions.o中的[CXMLNode(CXMLNode_NamespaceExtensions)nodesForXPath:namespaceMappings:error:]        - CXMLNode.o中的[CXMLNode nodesForXPath:error:]   &#34; _xmlXPathRegisterNs&#34;,引自:        - CXMLNode_XPathExtensions.o中的[CXMLNode(CXMLNode_NamespaceExtensions)nodesForXPath:namespaceMappings:error:] ld:找不到架构i386的符号 clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

&#34; _htmlParseDoc&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o

&#34; _htmlReadMemory&#34;,引自:

  -[CXHTMLDocument initWithXHTMLData:encoding:options:error:] in CXHTMLDocument.o

&#34; _xmlAddChild&#34;,引自:

  -[CXMLDocument(CXMLDocument_CreationExtensions) addChild:] in CXMLDocument_CreationExtensions.o


  -[CXMLElement(CXMLElement_CreationExtensions) addChild:] in CXMLElement_CreationExtensions.o


  -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o

&#34; _xmlAddPrevSibling&#34;,引自:

  -[CXMLDocument(CXMLDocument_CreationExtensions) insertChild:atIndex:] in CXMLDocument_CreationExtensions.o

&#34; _xmlCopyNode&#34;,引自:

  -[CXMLNode copyWithZone:] in CXMLNode.o

&#34; _xmlDocDumpFormatMemory&#34;,引自:

  -[CXMLDocument description] in CXMLDocument.o

&#34; _xmlDocDumpMemory&#34;,引自:

  -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o

&#34; _xmlDocGetRootElement&#34;,引自:

  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o


  -[CXMLDocument rootElement] in CXMLDocument.o

&#34; _xmlDocSetRootElement&#34;,引自:

  +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o


  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o

&#34; _xmlFree&#34;,引自:

  -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o


  -[CXMLDocument description] in CXMLDocument.o

&#34; _xmlFreeDoc&#34;,引自:

  -[CXMLDocument dealloc] in CXMLDocument.o

&#34; _xmlFreeNode&#34;,引自:

  -[CXMLNode dealloc] in CXMLNode.o

&#34; _xmlGetCharEncodingName&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o

&#34; _xmlGetLastError&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o


  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o

&#34; _xmlNewDoc&#34;,引自:

  +[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o


  +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o

&#34; _xmlNewNode&#34;,引自:

  +[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

&#34; _xmlNewNs&#34;,引自:

  +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o

&#34; _xmlNewPI&#34;,引自:

  +[CXMLNode(CXMLNode_CreationExtensions) processingInstructionWithName:stringValue:] in CXMLNode_CreationExtensions.o

&#34; _xmlNewText&#34;,引自:

  -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o

&#34; _xmlNodeDumpOutput&#34;,引自:

  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o

&#34; _xmlNodeSetContent&#34;,引自:

  -[CXMLNode(CXMLNode_CreationExtensions) setStringValue:] in CXMLNode_CreationExtensions.o

&#34; _xmlOutputBufferClose&#34;,引自:

  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o

&#34; _xmlOutputBufferCreateIO&#34;,引自:

  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o

&#34; _xmlOutputBufferFlush&#34;,引自:

  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o

&#34; _xmlParseDoc&#34;,引自:

  -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o

&#34; _xmlReadMemory&#34;,引自:

  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o

&#34; _xmlResetLastError&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o


  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o

&#34; _xmlSetNs&#34;,引自:

  -[CXMLElement(CXMLElement_CreationExtensions) addNamespace:] in CXMLElement_CreationExtensions.o

&#34; _xmlStrcmp&#34;,引自:

  -[CXMLElement elementsForName:] in CXMLElement.o


  -[CXMLElement elementsForLocalName:URI:] in CXMLElement.o


  -[CXMLElement attributeForName:] in CXMLElement.o


  -[CXMLElement attributeForLocalName:URI:] in CXMLElement.o


  -[CXMLElement namespaceForPrefix:] in CXMLElement.o


  -[CXMLElement resolvePrefixForNamespaceURI:] in CXMLElement.o

&#34; _xmlXPathEvalExpression&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o


  -[CXMLNode nodesForXPath:error:] in CXMLNode.o

&#34; _xmlXPathFreeContext&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o


  -[CXMLNode nodesForXPath:error:] in CXMLNode.o

&#34; _xmlXPathFreeObject&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o


  -[CXMLNode nodesForXPath:error:] in CXMLNode.o

&#34; _xmlXPathNewContext&#34;,引自:

  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o


  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o


  -[CXMLNode nodesForXPath:error:] in CXMLNode.o

&#34; _xmlXPathRegisterNs&#34;,引自:

  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o

ld:找不到架构i386的符号

clang:错误:链接器命令失败,退出代码为1(使用-v查看调用)

1 个答案:

答案 0 :(得分:8)

您必须将“libz.dylib”和“libxml2.dylib”添加到目标“Build Phases”中的“Link Binary With Libraries”项目中。