繁体   English   中英

Firebase iOS - 未定义符号:_GULResetLogger (arm64)

[英]Firebase iOS - Undefined symbol: _GULResetLogger (arm64)

使用 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'但我已经按照此处的建议将其删除并使用另一个答案中的命令重新安装了我的依赖项:

pod deintegrate
pod cache clean --all
pod install

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

我怎样才能构建我的应用程序?

经过几个小时的调试,我终于能够通过执行以下操作来解决这个问题:

  1. 降级到 Xcode 11.7(此处解释
  2. 全新安装依赖项(在此处解释
  3. 在 Xcode 的产品菜单下清理构建文件夹

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

  1. 为 iOS 14.0 安装设备支持文件(在此处解释
  2. 从 Xcode 取消配对设备
  3. 重启手机
  4. 清理构建文件夹

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM