Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Firebase crashlytics SDK helps builders to get actual time crash stories of their apps. Crashlytics SDK logs down a crash and supply data to the developer the place precisely its coming from. This fashion, developer can repair crash prevalence in app subsequent launch and make app extra steady to its customers. On this tutorial, we’re going to discover ways to combine Firebase Crashlytics SDK in our iOS app utilizing swift language.
Very first thing we have to add Firebase SDK and different dependencies to our venture. Comply with the under given steps so as to add Firebase SDK to the venture.
Comply with under Steps:
import UIKit import Firebase @primary class AppDelegate: UIResponder, UIApplicationDelegate { func utility(_ utility: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override level for personalization after utility launch. FirebaseApp.configure() return true } }
"${BUILD_DIR%/Construct/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run"
Word:- In case you are utilizing cocoa pods for set up, then it’s essential add given under shell command
"${PODS_ROOT}/FirebaseCrashlytics/run"
The above scripts are required as crashlytics requires, app to add debug symbols. Run script construct section for Xcode will mechanically add debug symbols post-build.
Subsequent steps is to add DYSM information. Within the Enter Recordsdata part, add the paths for the areas of the next information:
${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Sources/DWARF/${TARGET_NAME}
As per documentation, offering the situation of your venture’s dSYM information allows Crashlytics to course of dSYMs for big apps extra shortly.
2. The placement of your venture’s constructed Data.plist
file:
$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)
As per Firebase crashlytics documentation, offering the situation of your venture’s constructed Data.plist
file allows Crashlytics to affiliate an app model with the dSYMs.
Lastly, underneath Construct Settings of TARGETS and PROJECT. Seek for Debug data format, and set it as “DWARF with DYSM file”.
On this submit, we realized about how can we use Firebase crashlytics in iOS app utilizing swift language. Given benefits offered by crashlytics to report crash inside app in a really descriptive means, it’s a really needy factor to make use of within the cellular app.