为啥我会收到涉及 `_kFIRLoggerInstanceID` 的错误?
Posted
技术标签:
【中文标题】为啥我会收到涉及 `_kFIRLoggerInstanceID` 的错误?【英文标题】:Why am I getting this error involving `_kFIRLoggerInstanceID`?为什么我会收到涉及 `_kFIRLoggerInstanceID` 的错误? 【发布时间】:2020-11-20 20:03:17 【问题描述】:我正在尝试将我们的 ios 应用从 Fabric Crashlytics 3.10.2 升级到 Firebase Crashlytics 7.1.0。我基本上已经解决了这些错误,并且我遵循了一些教程,并且我一直在谷歌搜索,但是在链接时我无法摆脱这个错误:
Ld /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Products/Debug-iphoneos/REDACTED.app/REDACTED normal (in target 'REDACTED' from project 'REDACTED')
cd /Users/ben_l/Software/REDACTED
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target arm64-apple-ios13.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.2.sdk -L/Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Products/Debug-iphoneos -L/Users/ben_l/Software/REDACTED/Frameworks -F/Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Products/Debug-iphoneos -F/Users/ben_l/Software/REDACTED/Frameworks -F/Users/ben_l/Software/REDACTED/Frameworks/IntuneMAM -filelist /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Intermediates.noindex/REDACTED.build/Debug-iphoneos/REDACTED.build/Objects-normal/arm64/REDACTED.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Intermediates.noindex/REDACTED.build/Debug-iphoneos/REDACTED.build/Objects-normal/arm64/REDACTED_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Intermediates.noindex/REDACTED.build/Debug-iphoneos/REDACTED.build/Objects-normal/arm64/REDACTED.swiftmodule -lc++ -ObjC -DBUILDING_FOR_MOBILE -framework Security -framework SystemConfiguration -framework SystemConfiguration -framework CoreTelephony -framework UIKit -framework Security -framework QuartzCore -lz -framework StoreKit -lsqlite3 -lc++ -lz -framework REDACTED -framework AudioToolbox -framework FirebaseAnalytics -framework FIRAnalyticsConnector -framework GoogleAppMeasurement -framework CFNetwork -framework EVReflection -framework ImageIO -lsqlite3 -framework IntuneMAM -lc++ -licucore -framework LocalAuthentication -framework nanopb /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Products/Debug-iphoneos/REDACTED.framework/REDACTED -framework IntuneMAM -framework MediaPlayer -framework GoogleToolboxForMac -framework WebKit -framework REDACTED -framework QuartzCore -framework QuickLook -framework UIKit -framework Foundation -framework CoreGraphics -framework Security -framework MSAL -framework MessageUI -framework SystemConfiguration -framework CoreFoundation -framework MobileCoreServices -framework FirebaseNanoPB -framework AdSupport -framework FirebaseInstanceID -framework ReactiveObjC -framework CoreLocation -framework DSI -framework CoreTelephony -framework CoreData -Xlinker -no_adhoc_codesign -Xlinker -dependency_info -Xlinker /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Intermediates.noindex/REDACTED.build/Debug-iphoneos/REDACTED.build/Objects-normal/arm64/REDACTED_dependency_info.dat -o /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Products/Debug-iphoneos/REDACTED.app/REDACTED -Xlinker -add_ast_path -Xlinker /Users/ben_l/Library/Developer/Xcode/DerivedData/REDACTED-gzomtisvvdgyztddvpqujqxqsmjs/Build/Intermediates.noindex/Eureka.build/Debug-iphoneos/Eureka.build/Objects-normal/arm64/Eureka.swiftmodule
Undefined symbols for architecture arm64:
"_kFIRLoggerInstanceID", referenced from:
-[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] in FirebaseInstanceID(FIRInstanceIDLogger_0c879e312576b1b79740d2f19907597f.o)
-[FIRInstanceIDLogger logFuncInfo:messageCode:msg:] in FirebaseInstanceID(FIRInstanceIDLogger_0c879e312576b1b79740d2f19907597f.o)
-[FIRInstanceIDLogger logFuncNotice:messageCode:msg:] in FirebaseInstanceID(FIRInstanceIDLogger_0c879e312576b1b79740d2f19907597f.o)
-[FIRInstanceIDLogger logFuncWarning:messageCode:msg:] in FirebaseInstanceID(FIRInstanceIDLogger_0c879e312576b1b79740d2f19907597f.o)
-[FIRInstanceIDLogger logFuncError:messageCode:msg:] in FirebaseInstanceID(FIRInstanceIDLogger_0c879e312576b1b79740d2f19907597f.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
这里有人知道如何解决这个问题吗?
【问题讨论】:
【参考方案1】:根据错误,您缺少平台 ARM64 的组件。
我会先为 ARM64 安装所有开发库、VM 等。
干杯。
【讨论】:
什么意思?我正在尝试将其安装到已建立的 iOS 产品中。它多年来一直构建得很好,但是当我尝试更新到适用于 iOS 的最新 Crashlytics 框架时出现此错误 您使用 Fabric Crashlytics 3.10.2 构建您的 iOS 应用程序。为了构建应用程序,使用具有用于模拟不同平台的 VM 的软件。不同的平台支持占用大量空间并且是模块化的,因此您可以为一种或多种架构安装支持。对于您分享的错误,您似乎错过了为 ARM64 架构构建的依赖项,因为它是在您的初始项目中定义的。 还有一种可能是你使用的Logger组件不支持arm64,只支持arm32。也许您只为 arm32 生成?应用程序有多少年了? Apple 在 2017 年放弃了对 32 位 ARM 架构的支持,但我们的应用程序在现代设备上运行良好。代码库很旧,但仍在运行并可在 App Store 上下载。这表明它支持 AArch64/ARM64 就好了。你可能是对的,但如果你是,我看不到它以上是关于为啥我会收到涉及 `_kFIRLoggerInstanceID` 的错误?的主要内容,如果未能解决你的问题,请参考以下文章
为啥我会收到“错误:序列化从 getStaticProps 返回的 ___ 时出错”?