【发布时间】:2014-03-04 13:09:26
【问题描述】:
.h 和 .m xmpp 文件,我正在尝试开发聊天应用程序。
但是当我构建项目时出现以下错误,我试图从过去 24 小时解决问题,但没有成功获得解决方案,我什至用谷歌搜索但没有得到解决方案。
以下是我得到的错误,
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)
【问题讨论】:
-
看来您需要将
libresolv.dylib添加到您的框架中(此处的第6 步:github.com/robbiehanson/XMPPFramework/wiki/GettingStarted_iOS) -
感谢@Larme,问题已解决。我刚刚添加了你提到的 libresolv.dylib。
标签: ios7 xcode5 xmppframework