我在项目中使用xmmp库。当我在项目中添加库文件夹时,在Google获得此错误xmpp 'libxml/xmlversion.h' file not found后,我得到了此解决方案。转到项目->构建设置,并将“$SDKROOT/usr/include/libxml2”添加到页眉搜索路径中,即可正常运行但是现在出现了新问题。追加新的三个错误。列表如下:

ld: warning: directory not found for option '-L/Users/Mac-Devs/Documents/Ferrakkem/DivineIosDialer/../../g729'
Undefined symbols for architecture x86_64:
  "_dns_free_resource_record", referenced from:
      -[XMPPSRVResolver processRecord:length:] in XMPPSRVResolver.o
  "_dns_parse_resource_record", referenced from:
      -[XMPPSRVResolver processRecord:length:] in XMPPSRVResolver.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

最佳答案

我通过在“使用库链接二进制文件”中添加libresolv.tdd解决了我的问题。

关于ios - 在xcode 7.1中找不到xmpp'libxml/xmlversion.h'文件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34127646/

10-08 20:49