如何解决Firebase iOS-未定义符号:_GULResetLoggerarm64
使用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
以确保我拥有最新的依赖关系,但是我仍然遇到相同的错误。
如何构建我的应用?
解决方法
经过数小时的调试,我终于可以通过执行以下操作来解决此问题:
- 降级到Xcode 11.7(explained here)
- 干净安装依赖项(explained here) 在Xcode的 Product 菜单下的
- Clean Build Folder 。
我仍然无法在我的设备上运行该应用程序,因为Xcode 11不支持iOS 14(MobileDeviceErrorDomain错误-402653150)。这是我的解决方法:
- 为iOS 14.0(explained here)安装设备支持文件
- 从Xcode取消设备配对
- 重新启动iPhone
- 清理构建文件夹
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。