【问题标题】:Undefined symbols for architecture arm64: "_OBJC_CLASS_$_FIRMessaging"架构 arm64 的未定义符号:“_OBJC_CLASS_$_FIRMessaging”
【发布时间】:2023-03-31 19:55:01
【问题描述】:

您好,在运行 pod install 之后,我正在尝试在 Xcode 中构建一个 firebase unity 项目 并开始构建项目我收到此错误:

架构 arm64 的未定义符号: “OBJC_CLASS$_FIRMessaging”,引用自: libFirebaseCppMessaging.a 中的 objc 类引用(messaging_231c52c311096cfce13e67fa91eb9ac5.o) “firebase::ReferenceCountedFutureImpl::CompleteHandle(unsigned long)”,引用自: void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*)::'lambda'(void*) const&) 在 libFirebaseCppMessaging.a(messaging_231c52c311096cfce13e67fa91eb9ac5.o) “firebase::ReferenceCountedFutureImpl::ReleaseMutexAndRunCallback(unsigned long)”,引用自: void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*, void firebase::ReferenceCountedFutureImpl::CompleteInternal(unsigned long, int, char const*)::'lambda'(void*) const&) 在 libFirebaseCppMessaging.a(messaging_231c52c311096cfce13e67fa91eb9ac5.o) “firebase::util::ClassMethodImplementationCache::ReplaceOrAddMethod(objc_class*, objc_selector*, objc_object* ()(objc_object, objc_selector*, ...), objc_class*, bool)”,引用自: _FirebaseMessagingHookAppDelegate 在 libFirebaseCppMessaging.a(messaging_231c52c311096cfce13e67fa91eb9ac5.o) ld:未找到架构 arm64 的符号 clang:错误:链接器命令失败,退出代码为 1(使用 -v 查看调用)

有什么帮助吗?

【问题讨论】:

    标签: ios firebase unity3d


    【解决方案1】:

    您可以做的一件事是确保您已正确添加 pod 文件。检查语法是否正确,如果它根本不起作用,请执行 pod deinit,清理您的构建文件夹,然后重新安装 pod 并运行您的项目。

    确保您的目标和文件之间存在链接也值得一看。转到您的项目经理,选择您的目标,以及带有库的链接二进制文件,然后以这种方式添加您的 pod 文件。

    Xcode unittest build failed with error "Undefined symbols for architecture x86_64" 这在四处寻找如何解决这个问题时也有帮助。祝你好运。

    【讨论】:

      猜你喜欢
      • 2018-05-23
      • 2022-01-13
      • 2018-06-02
      • 1970-01-01
      • 1970-01-01
      • 2018-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多