【问题标题】:Firebase iOS - Undefined symbol: _GULResetLogger (arm64)Firebase iOS - 未定义符号:_GULResetLogger (arm64)
【发布时间】:2021-01-08 11:03:30
【问题描述】:

使用 XCode 12.0 构建我的 iOS 应用程序时出现以下错误:

Undefined symbols for architecture arm64:
  "_GULResetLogger", referenced from:
      _FIRResetLogger in FirebaseCore(FIRLogger.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

我的 Podfile 看起来像这样:

platform :ios, '12.0'

target 'MyApp' do
    use_frameworks!
    pod 'Firebase/Firestore'
    pod 'Firebase/Auth'
    pod 'Firebase/RemoteConfig'
end

以前我的 Podfile 也包含 pod 'Firebase/Core',但我已按照建议 here 将其删除,并使用 another answer 中的命令重新安装了我的依赖项:

pod deintegrate
pod cache clean --all
pod install

我还运行了pod update 以确保我拥有最新的依赖项,但我仍然遇到同样的错误。

如何构建我的应用程序?

【问题讨论】:

    标签: ios xcode firebase cocoa cocoapods


    【解决方案1】:

    经过数小时的调试,我终于能够通过以下方式解决这个问题:

    1. 降级到 Xcode 11.7 (explained here)
    2. 清理安装依赖项 (explained here)
    3. Clean Build Folder 在 Xcode 的 Product 菜单下。

    我仍然无法在我的设备上运行该应用程序,因为 Xcode 11 不支持 iOS 14(MobileDeviceErrorDomain 错误 -402653150)。这是我解决这个问题的方法:

    1. 为 iOS 14.0 安装设备支持文件 (explained here)
    2. 从 Xcode 取消配对设备
    3. 重启 iPhone
    4. 清理构建文件夹

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-01-08
      • 1970-01-01
      • 2013-10-13
      • 1970-01-01
      相关资源
      最近更新 更多