gpt4 book ai didi

ios - Branch.io "Undefined symbols for architecture x86_64:"错误

转载 作者:可可西里 更新时间:2023-11-01 06:03:42 25 4
gpt4 key购买 nike

我尝试在我的 iOS 应用程序中使用 Branch.io iOS SDK,但在尝试编译时出现以下错误:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_CSSearchableIndex", referenced from: objc-class-ref in BranchCSSearchableItemAttributeSet.o "_OBJC_CLASS_$_CSSearchableItem", referenced from: objc-class-ref in BranchCSSearchableItemAttributeSet.o "_OBJC_CLASS_$_CSSearchableItemAttributeSet", referenced from: _OBJC_CLASS_$_BranchCSSearchableItemAttributeSet in BranchCSSearchableItemAttributeSet.o
"_OBJC_METACLASS_$_CSSearchableItemAttributeSet", referenced from: _OBJC_METACLASS_$_BranchCSSearchableItemAttributeSet in BranchCSSearchableItemAttributeSet.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

作为tutorial如前所述,我已将 Branch-SDK 文件夹正确添加到项目中,我配置了 PLST,并在 AppDelegate.m 中添加了所有代码。我跳过了启用通用链接的第 3 步,因为我还不需要它。

我错过了什么可能导致这种情况?对于其他框架的这种错误,它往往是由不正确的类声明引起的,但我看不出我在哪里做错了。

最佳答案

对我来说,在 Podfile 中取消注释以下行并重新运行安装解决了 XCode 中的此类问题:

use_frameworks!

然后做一个

pod install

然后再次尝试在 XCode 中清理并运行该应用程序,它应该可以正常工作。它对我有用。

关于ios - Branch.io "Undefined symbols for architecture x86_64:"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35491820/

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