I've been following an official doc from Firebase and this tutorial on Medium to double-check. I am sure I have:
GoogleService-Info.plist
Podfile
replaced Fabric and Crashlytics withpod '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
to DWARF with dSYM File
import Firebase
in AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
[Firebase/Crashlytics] Version 7.0.0
My problem is that this keeps running and that's it.
What am I doing wrong and how can I upgrade to FirebaseCrashlytics correctly? Thank you!
My guess is that you're simulating a crash with the debugger still attached, so Crashlytics can't catch it, hence why you have nothing in your dashboard.
To properly test your implementation locally, follow these steps:
- 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
Source: https://firebase.google.com/docs/crashlytics/force-a-crash
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.