Friday, December 8, 2023
HomeiOS DevelopmentCombine Google Firebase Crashlytics in iOS app utilizing swift – iOSTutorialJunction

Combine Google Firebase Crashlytics in iOS app utilizing swift – iOSTutorialJunction

Firebase crashlytics SDK helps builders to get actual time crash experiences of their apps. Crashlytics SDK logs down a crash and supply info to the developer the place precisely its coming from. This fashion, developer can repair crash incidence in app subsequent launch and make app extra steady to its customers. On this tutorial, we’re going to learn to combine Firebase Crashlytics SDK in our iOS app utilizing swift language.

Including Firebase SDK

Very first thing we have to add Firebase SDK and different dependencies to our mission. Comply with the beneath given steps so as to add Firebase SDK to the mission.

  1. Go to
  2. Click on on Add mission.
  3. Enter mission identify.
  4. Hyperlink Google analytics to the mission.(Comply with the steps proven by Firebase console window)
  5. Choose present location(nation we’re residing in).
  6. Settle for circumstances and click on on create mission.
  7. Click on Proceed.
  8. A display screen with our mission dashboard will open up.
  9. Click on on iOS icon as we wish to add Firebase SDK for iOS.
  10. Comply with the 5 steps, as described within the internet web page. (Word:- One can selected completely different set up strategies, however the advisable one is by way of SPM(Swift Package deal Supervisor))

Utilizing Firebase Crashlytics SDK

Comply with beneath Steps:

  • Drag and drop GoogleService-Information.plist into the mission folder.
  • Open AppDelegate.swift and import Firebase, followe by configure command.
import UIKit
import Firebase

class AppDelegate: UIResponder, UIApplicationDelegate {

    func utility(_ utility: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override level for personalization after utility launch.
        return true
Add run script for Firebase crashlytics in xcode iOS
  1. Choose the mission in Undertaking Naviagtor
  2. Choose mission goal listed below TARGETS, in our case its ‘CrashlyticsDemo‘.
  3. Choose Construct Phases.
  4. Click on on + icon, then choose New Run Script Section.
  5. Beneath shell part add beneath run script

Word:- If you’re utilizing cocoa pods for set up, then you might want to add given beneath shell command


The above scripts are required as crashlytics requires, app to add debug symbols. Run script construct part for Xcode will mechanically add debug symbols post-build.
Fore extra data verify this hyperlink:

Subsequent steps is to add DYSM recordsdata. Within the Enter Recordsdata part, add the paths for the places of the next recordsdata:

  1. The situation of mission’s dSYM recordsdata:

As per documentation, offering the placement of your mission’s dSYM recordsdata allows Crashlytics to course of dSYMs for big apps extra shortly.

2. The situation of your mission’s constructed Information.plist file:


As per Firebase crashlytics documentation, offering the placement of your mission’s constructed Information.plist file allows Crashlytics to affiliate an app model with the dSYMs.

Lastly, below Construct Settings of TARGETS and PROJECT. Seek for Debug info format, and set it as “DWARF with DYSM file”.

Debug information format, and set it as DWARF with DYSM file  xcode ios firebase crashlytics

The place to go from right here

On this submit, we discovered 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 manner, it’s a really needy factor to make use of within the cell app.



Please enter your comment!
Please enter your name here

Most Popular

Recent Comments