[英]iOS Firebase crashlytics dashboard does not show crashes when app archived and installed via Testflight
[英]Firebase Crashlytics doesn't show changes in Dashboard/Console iOS app
我一直在关注Firebase 的官方文档和Medium上的本教程进行仔细检查。 我确定我有:
GoogleService-Info.plist
Podfile
将 Fabric 和 Crashlytics 替换为pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics'
pod install
${PODS_ROOT}/FirebaseCrashlytics/run
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
DWARF with dSYM File
将Debug Information Format
更改为DWARF with dSYM File
AppDelegate.swift
导入import Firebase
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
[Firebase/Crashlytics] Version 7.0.0
我的问题是它一直在运行,仅此而已。
我做错了什么,如何正确升级到 FirebaseCrashlytics? 谢谢!
我的猜测是您正在模拟仍然连接着调试器的崩溃,因此 Crashlytics 无法捕获它,因此为什么您的仪表板中没有任何内容。
要在本地正确测试您的实现,请执行以下步骤:
- 单击“
Build and then run the current scheme
在 Xcode 中Build and then run the current scheme
(播放按钮)以在设备或模拟器上构建您的应用程序。- 在 Xcode 中单击
Stop running the scheme or action
(停止按钮)以关闭应用程序的初始实例。 这个初始实例包括一个干扰 Crashlytics 的调试器。- 从模拟器或设备再次打开您的应用程序。
- 强制您的应用程序崩溃。
- 再次打开您的应用,让 Crashlytics API 报告崩溃。 您的崩溃应在 5 分钟内显示在 Firebase 控制台中
来源: https : //firebase.google.com/docs/crashlytics/force-a-crash
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.