gpt4 book ai didi

swift 火力基地 "_OBJC_CLASS_$_GPBDescriptor"错误

转载 作者:可可西里 更新时间:2023-11-01 01:08:40 29 4
gpt4 key购买 nike

我手动导入firebase

运行时出现以下错误:

Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GPBDescriptor", referenced from:
objc-class-ref in FirebaseMessaging(GtalkCore.pbobjc.o)
objc-class-ref in FirebaseMessaging(GtalkExtensions.pbobjc.o)
"_OBJC_CLASS_$_GPBCodedOutputStream", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessagingSecureSocket.o)
"_OBJC_CLASS_$_GPBFileDescriptor", referenced from:
objc-class-ref in FirebaseMessaging(GtalkCore.pbobjc.o)
objc-class-ref in FirebaseMessaging(GtalkExtensions.pbobjc.o)
"_OBJC_CLASS_$_FIRInstanceID", referenced from:
objc-class-ref in FirebaseMessaging(FIRMessaging.o)
"_OBJC_METACLASS_$_GPBMessage", referenced from:
_OBJC_METACLASS_$_GtalkHeartbeatPing in FirebaseMessaging(GtalkCore.pbobjc.o)

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

此外,我添加了 libz,libsqlite3,libc++libcucore

AppDelegate 中我添加了 FirebaseApp.configure()

最佳答案

主要是如果您要使用FirebaseMessaging.framework,您将需要不同框架的组合。 没有它们,您将遇到链接器错误

Firebase.framework
FirebaseCore.framework
FirebaseInstanceID.framework
GoogleUtilities.framework
Protobuf.framework

没有别的。不需要所有这些 libzlibsqlite3libc++libcucore

关于 swift 火力基地 "_OBJC_CLASS_$_GPBDescriptor"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51151815/

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