Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
Firebase crashlytics SDK helps developers to get real time crash reports of their apps. Crashlytics SDK logs down a crash and provide information to the developer where exactly its coming from. This way, developer can fix crash occurrence in app next release and make app more stable to its users. In this tutorial, we are going to learn how to integrate Firebase Crashlytics SDK in our iOS app using swift language.
First thing we need to add Firebase SDK and other dependencies to our project. Follow the below given steps to add Firebase SDK to the project.
Follow below Steps:
import UIKit import Firebase @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. FirebaseApp.configure() return true } }
"${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
Note:- If you are using cocoa pods for installation, then you need to add given below shell command
"${PODS_ROOT}/FirebaseCrashlytics/run"
The above scripts are required as crashlytics requires, app to upload debug symbols. Run script build phase for Xcode will automatically upload debug symbols post-build.
Next steps is to upload DYSM files. In the Input Files section, add the paths for the locations of the following files:
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}
As per documentation, providing the location of your project’s dSYM files enables Crashlytics to process dSYMs for large apps more quickly.
2. The location of your project’s built Info.plist
file:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
As per Firebase crashlytics documentation, providing the location of your project’s built Info.plist
file enables Crashlytics to associate an app version with the dSYMs.
Lastly, under Build Settings of TARGETS and PROJECT. Search for Debug information format, and set it as “DWARF with DYSM file”.
In this post, we learned about how can we use Firebase crashlytics in iOS app using swift language. Given advantages provided by crashlytics to report crash inside app in a very descriptive way, it’s a very needy thing to use in the mobile app.
[ad_2]