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 仔细检查。
我确定我有:
- 已下载
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)
- 更改为
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
我的问题是这让 运行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
我一直在关注 an official doc from Firebase and this tutorial on 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)
- 更改为
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
我的问题是这让 运行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