xcode 崩溃上传成功但在 crashlytics 中不可见
xcode crash uploaded successfully but not visible in crashlytics
我在我的代码中集成了 crashlytics。按照步骤
Launch the Simulator. Hit Stop in Xcode. Launch your app in the
Simulator and cause a crash. Hit Run in Xcode. The crash report will
show up and you can see console output indicating that the report has
been sent.
我可以看到 Xcode 上传崩溃成功但在 crashlytics 中不可见。可能是什么原因?
我们从 Xcode 中获得的每个构建都包含一个 DYsm 文件,其中包含所有可能崩溃的定义,因此您还需要将该文件上传到 Firebase 控制台。
- 我不是 100% 确定,但我猜在开发模式下没有崩溃上传到 crashlytics,只有当应用程序安装在 phone。
1) Check DWARF with dSYM File:
Double-check in your Build Settings that your Debug Information Format is “DWARF with dSYM File” for both Debug and Release
2) Check if Fabric.with(\[Crashlytics.self\])
is last line at appDidFinishLaunchingWithOptions method:
Make sure our SDK line is after all other 3rd-party SDK lines that install an exception handler. (We need to be last one called in your appDidFinishLaunchingWithOptions method.)
示例:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//Firebase
FirebaseApp.configure()
//StatusBar
UIApplication.shared.statusBarStyle = .lightContent
//NavBar
UINavigationBar.appearance().tintColor = .white
...
//Crashlytics
//Make sure this SDK line is after all other 3rd-party SDK lines that install an exception handler.
Fabric.with([Crashlytics.self])
return true
}
3) If you're using our [Crashlytics sharedInstance] crash]
If you're using our [Crashlytics sharedInstance] crash]; to test crashing, make sure it's not in the appDidFinishLaunching method.
我在我的代码中集成了 crashlytics。按照步骤
Launch the Simulator. Hit Stop in Xcode. Launch your app in the Simulator and cause a crash. Hit Run in Xcode. The crash report will show up and you can see console output indicating that the report has been sent.
我可以看到 Xcode 上传崩溃成功但在 crashlytics 中不可见。可能是什么原因?
我们从 Xcode 中获得的每个构建都包含一个 DYsm 文件,其中包含所有可能崩溃的定义,因此您还需要将该文件上传到 Firebase 控制台。
- 我不是 100% 确定,但我猜在开发模式下没有崩溃上传到 crashlytics,只有当应用程序安装在 phone。
1) Check DWARF with dSYM File:
Double-check in your Build Settings that your Debug Information Format is “DWARF with dSYM File” for both Debug and Release
2) Check if Fabric.with(\[Crashlytics.self\])
is last line at appDidFinishLaunchingWithOptions method:
Make sure our SDK line is after all other 3rd-party SDK lines that install an exception handler. (We need to be last one called in your appDidFinishLaunchingWithOptions method.)
示例:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
//Firebase
FirebaseApp.configure()
//StatusBar
UIApplication.shared.statusBarStyle = .lightContent
//NavBar
UINavigationBar.appearance().tintColor = .white
...
//Crashlytics
//Make sure this SDK line is after all other 3rd-party SDK lines that install an exception handler.
Fabric.with([Crashlytics.self])
return true
}
3) If you're using our [Crashlytics sharedInstance] crash]
If you're using our [Crashlytics sharedInstance] crash]; to test crashing, make sure it's not in the appDidFinishLaunching method.