Firebase Crashlytics 未显示 Dashboard/Console iOS 应用中的更改

Firebase Crashlytics doesn't show changes in Dashboard/Console iOS app

我一直在关注 an official doc from Firebase and this tutorial on Medium 仔细检查。 我确定我有:

pod 'Firebase/Crashlytics'
pod 'Firebase/Analytics' 
${PODS_ROOT}/FirebaseCrashlytics/run
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    FirebaseApp.configure()
    return true
}
 [Firebase/Crashlytics] Version 7.0.0

我的问题是这让 运行ning 就这样了。

我做错了什么以及如何正确升级到 FirebaseCrashlytics?谢谢!

我的猜测是您在模拟崩溃时仍然连接着调试器,因此 Crashlytics 无法捕获它,因此您的仪表板中什么也没有。

要在本地正确测试您的实施,请按照以下步骤操作:

  • Click Build and then run the current scheme (the play button) in Xcode to build your app on a device or simulator.
  • Click Stop running the scheme or action (the stop button) in Xcode to close the initial instance of your app. This initial instance includes a debugger that interferes with Crashlytics.
  • Open your app again from the simulator or device.
  • Force a crash in your app.
  • Open your app once more to let the Crashlytics API report the crash. Your crash should show up in the Firebase console within 5 minutes

来源:https://firebase.google.com/docs/crashlytics/force-a-crash