.h和.m文件的xmpp,我正在尝试一个聊天应用程序。
但是当我构建这个项目时,我得到了下面的错误,我试图从过去的24小时开始解决这个问题,但是没有成功地得到解决方案,我甚至在googled上搜索,但没有得到解决方案。以下是我所犯的错误,
Undefined symbols for architecture i386:
"_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 i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)发布于 2014-02-07 10:35:43
您必须将libresolv.dylib添加到框架中。
在this tutorial中,这是步骤6:
第六步 将下列文件夹添加到项目中,并添加到Xcode项目中: 此外,将libresolv.dylib添加到Xcode项目中。(在Xcode 4中,转到目标->构建阶段->链接二进制和库-> + ->从下拉列表中选择libresolv.dylib ) 确保您的项目编译。 现在,您可以开始在项目中使用XMPPFramework了。“介绍到XMPPFramework”页面解释了如何做到这一点。
https://stackoverflow.com/questions/21622384
复制相似问题