Ошибка при связывании libxml ios

Я запускаю проект iOS. Я использую Xcode 8, и я не могу скомпилировать свой проект на устройстве и успешно запустить его на симуляторе. Он был успешно скомпилирован с Xcode 7.2

Я использую KissXML с cocoapods, и это использует фреймворк libxml2.2.dylib.

https://github.com/robbiehanson/KissXML

Я сделал много вещей:

  • добавленной libxml2.2.dylib файл в контент Xcode
  • добавленной -lxml2 на другой флаг компоновщика
  • добавленной $(SDKROOT)/usr/include/libxml2 в заголовок пути поиска
  • добавленной $(inherited) к процессору Macros

но я не смог запустить проект. Я всегда получаю эту ошибку.

    "_xmlStrdup", referenced from:
          -[DDXMLNamespaceNode setName:] in libKissXML.a(DDXMLNode.o)
      "_xmlDocSetRootElement", 

    referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlXPathFreeContext", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlXPathEvalExpression", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlUnlinkNode", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlXPathNewContext", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlSaveNoEmptyTags", referenced from:
          -[DDXMLNode XMLStringWithOptions:] in libKissXML.a(DDXMLNode.o)
      "_xmlIndentTreeOutput", referenced from:
          -[DDXMLNode XMLStringWithOptions:] in libKissXML.a(DDXMLNode.o)
      "_xmlNodeDump", referenced from:
          -[DDXMLNode XMLStringWithOptions:] in libKissXML.a(DDXMLNode.o)
      "_xmlNodeGetContent", referenced from:
          -[DDXMLNode stringValue] in libKissXML.a(DDXMLNode.o)
      "_xmlNewDoc", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlNodeSetName", referenced from:
          -[DDXMLNode setName:] in libKissXML.a(DDXMLNode.o)
      "_xmlCopyDoc", referenced from:
          -[DDXMLNode copyWithZone:] in libKissXML.a(DDXMLNode.o)
      "_xmlXPathFreeObject", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlCopyNode", referenced from:
          -[DDXMLNode copyWithZone:] in libKissXML.a(DDXMLNode.o)
      "_xmlCopyProp", referenced from:
          -[DDXMLNode copyWithZone:] in libKissXML.a(DDXMLNode.o)
      "_xmlCopyDtd", referenced from:
          -[DDXMLNode copyWithZone:] in libKissXML.a(DDXMLNode.o)
      "_xmlFreeDtd", referenced from:
          -[DDXMLNode dealloc] in libKissXML.a(DDXMLNode.o)
      "_xmlKeepBlanksDefault", referenced from:
          -[DDXMLDocument initWithData:options:error:] in libKissXML.a(DDXMLDocument.o)
          ___23+[DDXMLNode initialize]_block_invoke in libKissXML.a(DDXMLNode.o)
      "_xmlNewText", referenced from:
          +[DDXMLNode textWithStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setStringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlFreeNs", referenced from:
          -[DDXMLNode dealloc] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeNamespace:fromNode:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeAllNamespacesFromNode:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode dealloc] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setURI:] in libKissXML.a(DDXMLNode.o)
      "_xmlNewNs", referenced from:
          +[DDXMLNode namespaceWithName:stringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLNode setURI:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode recursiveMigrateNamespace:to:node:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode recursiveFixDefaultNamespacesInNode:withNewRoot:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode detach] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setURI:] in libKissXML.a(DDXMLNode.o)
      "_xmlSetStructuredErrorFunc", referenced from:
          ___23+[DDXMLNode initialize]_block_invoke in libKissXML.a(DDXMLNode.o)
      "_xmlAddPrevSibling", referenced from:
          -[DDXMLElement insertChild:atIndex:] in libKissXML.a(DDXMLElement.o)
      "_initGenericErrorDefaultFunc", referenced from:
          ___23+[DDXMLNode initialize]_block_invoke in libKissXML.a(DDXMLNode.o)
      "_xmlCopyNamespace", referenced from:
          -[DDXMLNode copyWithZone:] in libKissXML.a(DDXMLNode.o)
      "_xmlAddChild", referenced from:
          -[DDXMLElement addAttribute:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement addChild:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement insertChild:atIndex:] in libKissXML.a(DDXMLElement.o)
      "_xmlNewPI", referenced from:
          +[DDXMLNode processingInstructionWithName:stringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlStrcmp", referenced from:
          -[GCDWebDAVServer(Methods) performPROPFIND:] in GCDWebDAVServer.o
          __XMLChildWithName in GCDWebDAVServer.o
      "_xmlStrEqual", referenced from:
          -[DDXMLElement _elementsForName:localName:prefix:uri:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement _hasAttributeWithName:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement _removeAttributeForName:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement attributeForName:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement _removeNamespaceForPrefix:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement namespaceForPrefix:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement _recursiveResolveNamespaceForPrefix:atNode:] in libKissXML.a(DDXMLElement.o)
          ...
      "_xmlEncodeSpecialChars", referenced from:
          -[DDXMLNode setStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLNamespaceNode setStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setStringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlFreeProp", referenced from:
          -[DDXMLNode dealloc] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeAttribute:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeAllAttributesFromNode:] in libKissXML.a(DDXMLNode.o)
      "_xmlFreeNode", referenced from:
          -[DDXMLNode dealloc] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeChild:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode removeAllChildrenFromNode:] in libKissXML.a(DDXMLNode.o)
      "_xmlNewComment", referenced from:
          +[DDXMLNode commentWithStringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlNewProp", referenced from:
          +[DDXMLNode attributeWithName:stringValue:] in libKissXML.a(DDXMLNode.o)
          +[DDXMLNode attributeWithName:URI:stringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlBufferCreate", referenced from:
          -[DDXMLNode XMLStringWithOptions:] in libKissXML.a(DDXMLNode.o)
      "_xmlBufferFree", referenced from:
          -[DDXMLNode XMLStringWithOptions:] in libKissXML.a(DDXMLNode.o)
      "_xmlNewNode", referenced from:
          -[DDXMLElement initWithName:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement initWithName:URI:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLElement initWithName:stringValue:] in libKissXML.a(DDXMLElement.o)
      "_xmlStrQEqual", referenced from:
          -[DDXMLElement attributeForName:] in libKissXML.a(DDXMLElement.o)
      "_xmlParseMemory", referenced from:
          -[DDXMLDocument initWithData:options:error:] in libKissXML.a(DDXMLDocument.o)
      "_xmlReadMemory", referenced from:
          -[GCDWebDAVServer(Methods) performPROPFIND:] in GCDWebDAVServer.o
          -[GCDWebDAVServer(Methods) performLOCK:] in GCDWebDAVServer.o
      "_xmlDocGetRootElement", referenced from:
          -[DDXMLDocument rootElement] in libKissXML.a(DDXMLDocument.o)
      "_xmlSearchNs", referenced from:
          -[DDXMLElement elementsForName:] in libKissXML.a(DDXMLElement.o)
          -[DDXMLAttributeNode URI] in libKissXML.a(DDXMLNode.o)
      "_xmlXPathRegisterNs", referenced from:
          -[DDXMLNode nodesForXPath:error:] in libKissXML.a(DDXMLNode.o)
      "_xmlNodeSetContent", referenced from:
          -[DDXMLNode setStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setStringValue:] in libKissXML.a(DDXMLNode.o)
      "_xmlFree", referenced from:
          -[DDXMLNode setStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLNode stringValue] in libKissXML.a(DDXMLNode.o)
          -[DDXMLNamespaceNode setName:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLNamespaceNode setStringValue:] in libKissXML.a(DDXMLNode.o)
          -[DDXMLAttributeNode setStringValue:] in libKissXML.a(DDXMLNode.o)

ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

0 ответов

Другие вопросы по тегам