gpt4 book ai didi

ios - Xcode 找不到 XMPPFramework——如何修复链接器错误?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:08:23 26 4
gpt4 key购买 nike

这一定是一个普遍存在的问题,但我将不胜感激任何帮助。我有一个 Xcode 4.2 项目,它无法正常构建。问题是适用于 iOS 的 XMPPFramework。我已经按照维基上的说明进行操作。

我并没有真正深入了解发生了什么,但 Xcode 找不到我的 XMPPFramework(适用于 iOS)。这是错误,我不知道如何解决。我在项目和目标设置中添加了 XMPPFramework 的路径。我的 XMPPFramework 文件位于我的 Xcode 项目的根目录下,但 Xcode 似乎找不到这些文件。什么是用户 header 路径、框架路径和库搜索路径?我已将 XMPPFramework 的路径添加到所有这些字段,但没有任何好处。我使用了 $(inherited) 和 $(SRCROOT) 并检查了递归按钮。我所有的观点都可以帮助我解决这个问题。

Undefined symbols for architecture i386:
"_ExtractFileNameWithoutExtension", referenced from: -[AppDelegate_iPhone contextDidSave:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStreamDidSecure:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStreamDidConnect:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStreamDidAuthenticate:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStream:didNotAuthenticate:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStream:didReceiveIQ:] in AppDelegate_iPhone.o -[AppDelegate_iPhone xmppStream:didReceiveMessage:] in AppDelegate_iPhone.o ... "_OBJC_CLASS_$_DDLog", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_DDTTYLogger", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPStream", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPReconnect", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPRosterCoreDataStorage", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPRoster", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPvCardCoreDataStorage", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPvCardTempModule", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPvCardAvatarModule", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPCapabilitiesCoreDataStorage", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPCapabilities", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPPresence", referenced from: objc-class-ref in AppDelegate_iPhone.o "_OBJC_CLASS_$_XMPPJID", referenced from: objc-class-ref in AppDelegate_iPhone.o objc-class-ref in AccountViewController.o objc-class-ref in AddBuddyViewController.o objc-class-ref in ChatViewController.o objc-class-ref in GroupChatViewController.o ld: symbol(s) not found for architecture i386

clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

最佳答案

没关系,想通了。您不能只是将文件拖放到项目中。您必须将它们复制到项目文件夹中,然后添加它们。

关于ios - Xcode 找不到 XMPPFramework——如何修复链接器错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9120067/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com