title: AePub Reader Error in Xcode 4.6
body: <p>I downloaded an open source epub reader called AePubReader its working fine.But When i tried to integrate with my application in xcode 4.6 it shows lots of errors due to the ARC .So i selected those files and set "-fno-objc-arc" flag .But after that  it shows error like <code>#include &lt;libxml/tree.h&gt; not found![this is the error i got ][1]</code><br>
  $(SDK_DIR)"/usr/include/libxml2   i added this line then that problem is solved but   after that it shows "43 Errors"  something like "  Apple Mach-O Linker Error"most of them related to xml files</p>
  
  <p>My error message</p>
  
  <p>Undefined symbols for architecture i386:
    "_htmlParseDoc", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o</p>
  
  <p>"_htmlReadMemory", referenced from:
        -[CXHTMLDocument initWithXHTMLData:encoding:options:error:] in CXHTMLDocument.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
    "_xmlAddPrevSibling", referenced from:
        -[CXMLDocument(CXMLDocument_CreationExtensions) insertChild:atIndex:] in CXMLDocument_CreationExtensions.o
    "_xmlCopyNode", referenced from:
        -[CXMLNode copyWithZone:] in CXMLNode.o</p>
  
  <pre><code>"_xmlDocDumpFormatMemory", referenced from:
    -[CXMLDocument description] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlDocDumpMemory", referenced from:
        -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o
    "_xmlDocGetRootElement", referenced from:
        -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
        -[CXMLDocument rootElement] in CXMLDocument.o
    "_xmlDocSetRootElement", referenced from:
        +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
    "_xmlFree", referenced from:
        -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o
        -[CXMLDocument description] in CXMLDocument.o
    "_xmlFreeDoc", referenced from:
        -[CXMLDocument dealloc] in CXMLDocument.o
    "_xmlFreeNode", referenced from:
        -[CXMLNode dealloc] in CXMLNode.o
    "_xmlGetCharEncodingName", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
    "_xmlGetLastError", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
        -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o</p>
  
  <pre><code>"_xmlNewDoc", referenced from:
    +[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o
    +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
  </code></pre>
  
  <p>"_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
    "_xmlNewNs", referenced from:
        +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o
    "_xmlNewPI", referenced from:
        +[CXMLNode(CXMLNode_CreationExtensions) processingInstructionWithName:stringValue:] in CXMLNode_CreationExtensions.o
    "_xmlNewText", referenced from:
        -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o
    "_xmlNodeDumpOutput", referenced from:
        -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
    "_xmlNodeSetContent", referenced from:
        -[CXMLNode(CXMLNode_CreationExtensions) setStringValue:] in CXMLNode_CreationExtensions.o
    "_xmlOutputBufferClose", referenced from:
        -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
    "_xmlOutputBufferCreateIO", referenced from:
        -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
    "_xmlOutputBufferFlush", referenced from:
        -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
    "_xmlParseDoc", referenced from:
        -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
    "_xmlReadMemory", referenced from:
        -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
    "_xmlResetLastError", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
        -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
    "_xmlSetNs", referenced from:
        -[CXMLElement(CXMLElement_CreationExtensions) addNamespace:] in CXMLElement_CreationExtensions.o
    "_xmlStrcmp", referenced from:
        -[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
    "_xmlXPathEvalExpression", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
        -[CXMLNode nodesForXPath:error:] in CXMLNode.o
    "_xmlXPathFreeContext", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
        -[CXMLNode nodesForXPath:error:] in CXMLNode.o
    "_xmlXPathFreeObject", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
        -[CXMLNode nodesForXPath:error:] in CXMLNode.o
    "_xmlXPathNewContext", referenced from:
        -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
        -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
        -[CXMLNode nodesForXPath:error:] in CXMLNode.o
    "_xmlXPathRegisterNs", referenced from:
        -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  ld: symbol(s) not found for architecture i386
  clang: error: linker command failed with exit code 1 (use -v to see invocation)</p>
  
  <p>"_htmlParseDoc", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  </code></pre>
  
  <p>"_htmlReadMemory", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLData:encoding:options:error:] in CXHTMLDocument.o
  </code></pre>
  
  <p>"_xmlAddChild", referenced from:</p>
  
  <pre><code>  -[CXMLDocument(CXMLDocument_CreationExtensions) addChild:] in CXMLDocument_CreationExtensions.o
  
  
    -[CXMLElement(CXMLElement_CreationExtensions) addChild:] in CXMLElement_CreationExtensions.o
  
  
    -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlAddPrevSibling", referenced from:</p>
  
  <pre><code>  -[CXMLDocument(CXMLDocument_CreationExtensions) insertChild:atIndex:] in CXMLDocument_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlCopyNode", referenced from:</p>
  
  <pre><code>  -[CXMLNode copyWithZone:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlDocDumpFormatMemory", referenced from:</p>
  
  <pre><code>  -[CXMLDocument description] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlDocDumpMemory", referenced from:</p>
  
  <pre><code>  -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlDocGetRootElement", referenced from:</p>
  
  <pre><code>  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
  
  
    -[CXMLDocument rootElement] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlDocSetRootElement", referenced from:</p>
  
  <pre><code>  +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
  
  
    -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  </code></pre>
  
  <p>"_xmlFree", referenced from:</p>
  
  <pre><code>  -[CXMLDocument XMLDataWithOptions:] in CXMLDocument.o
  
  
    -[CXMLDocument description] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlFreeDoc", referenced from:</p>
  
  <pre><code>  -[CXMLDocument dealloc] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlFreeNode", referenced from:</p>
  
  <pre><code>  -[CXMLNode dealloc] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlGetCharEncodingName", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  </code></pre>
  
  <p>"_xmlGetLastError", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
  
  
    -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlNewDoc", referenced from:</p>
  
  <pre><code>  +[CXMLNode(CXMLNode_CreationExtensions) document] in CXMLNode_CreationExtensions.o
  
  
    +[CXMLNode(CXMLNode_CreationExtensions) documentWithRootElement:] in CXMLNode_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlNewNode", referenced from:</p>
  
  <pre><code>  +[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
  </code></pre>
  
  <p>"_xmlNewNs", referenced from:</p>
  
  <pre><code>  +[CXMLNode(CXMLNode_CreationExtensions) elementWithName:URI:] in CXMLNode_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlNewPI", referenced from:</p>
  
  <pre><code>  +[CXMLNode(CXMLNode_CreationExtensions) processingInstructionWithName:stringValue:] in CXMLNode_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlNewText", referenced from:</p>
  
  <pre><code>  -[CXMLElement(CXMLElement_CreationExtensions) setStringValue:] in CXMLElement_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlNodeDumpOutput", referenced from:</p>
  
  <pre><code>  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlNodeSetContent", referenced from:</p>
  
  <pre><code>  -[CXMLNode(CXMLNode_CreationExtensions) setStringValue:] in CXMLNode_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlOutputBufferClose", referenced from:</p>
  
  <pre><code>  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlOutputBufferCreateIO", referenced from:</p>
  
  <pre><code>  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlOutputBufferFlush", referenced from:</p>
  
  <pre><code>  -[CXMLNode XMLStringWithOptions:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlParseDoc", referenced from:</p>
  
  <pre><code>  -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlReadMemory", referenced from:</p>
  
  <pre><code>  -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlResetLastError", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLDocument initWithXMLString:options:error:] in CXMLDocument.o
  
  
    -[CXMLDocument initWithData:encoding:options:error:] in CXMLDocument.o
  </code></pre>
  
  <p>"_xmlSetNs", referenced from:</p>
  
  <pre><code>  -[CXMLElement(CXMLElement_CreationExtensions) addNamespace:] in CXMLElement_CreationExtensions.o
  </code></pre>
  
  <p>"_xmlStrcmp", referenced from:</p>
  
  <pre><code>  -[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
  </code></pre>
  
  <p>"_xmlXPathEvalExpression", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  
  
    -[CXMLNode nodesForXPath:error:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlXPathFreeContext", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  
  
    -[CXMLNode nodesForXPath:error:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlXPathFreeObject", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  
  
    -[CXMLNode nodesForXPath:error:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlXPathNewContext", referenced from:</p>
  
  <pre><code>  -[CXHTMLDocument initWithXHTMLString:options:error:] in CXHTMLDocument.o
  
  
    -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  
  
    -[CXMLNode nodesForXPath:error:] in CXMLNode.o
  </code></pre>
  
  <p>"_xmlXPathRegisterNs", referenced from:</p>
  
  <pre><code>  -[CXMLNode(CXMLNode_NamespaceExtensions) nodesForXPath:namespaceMappings:error:] in CXMLNode_XPathExtensions.o
  </code></pre>
  
  <p>ld: symbol(s) not found for architecture i386</p>
  
  <p>clang: error: linker command failed with exit code 1 (use -v to see invocation)</p>