Generated banner for Firebase Crashlytics
Generated logo for Firebase Crashlytics

Firebase Crashlytics

Firebase (Google)OfficialCreated by Google LLCDistributed by Firebase (Google)

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • Low risk

From the author

Comprehensive guide for Firebase Crashlytics, including provisioning and SDK usage. Use this skill when the user needs help setting up Crashlytics, adding crash reporting, or using the Crashlytics SDK in their application.
— the description by Google LLC

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides instructions for setting up Firebase Crashlytics in mobile applications to collect and report crash data. It covers the necessary prerequisites, SDK installation for Android and iOS, and configuration steps to ensure crash reports are properly symbolicated and sent to the Firebase console.

What it does

  • Provides setup steps for Firebase Crashlytics on Android and iOS platforms.
  • Explains how to add dependencies and plugins for crash reporting.
  • Guides the configuration of dSYM upload scripts for iOS symbolication.
  • Details how to customize crash reports with logs, keys, and user identifiers.
  • Outlines the process for verifying crash reporting with a test crash.
  • References Firebase CLI tools for managing project and app resources.

When to use it

  • When you need to integrate crash reporting into a new Android or iOS application.
  • When you need to configure native crash reporting for Android NDK projects.
  • When you need to customize crash reports with additional debugging context.
  • When you need to verify that crash reports are successfully reaching the Firebase console.

Advantages

  • Centralized guidance for multi-platform mobile crash reporting.
  • Includes specific instructions for handling native crashes on Android.
  • Provides clear steps for verifying integration through test crashes.
  • Integrates with standard Firebase CLI workflows for project management.

Usage examples

“How do I set up Firebase Crashlytics in my Android project?”
The agent provides the necessary Gradle plugin and dependency configurations, including instructions for fetching the latest versions from the Google Maven Repository.
“What are the steps to configure Crashlytics for my iOS app?”
The agent guides you through adding the Swift package, configuring the Run Script phase for dSYM uploads, and initializing Firebase in the application code.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/firebase/firebase-crashlytics/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip firebase-crashlytics.zip -d .agents/skills

Documentation by Google LLC

Crashlytics

This skill provides a complete guide for getting started with Crashlytics on Android or iOS. Crash data collected from client applications can be read using the MCP server in the Firebase CLI.

Prerequisites

Provisioning Crashlytics requires both a Firebase project and a Firebase app, either Android or iOS. To read the data collected by Crashlytics, install the MCP server in the Firebase CLI. See the firebase-basics skill for references.

SDK Setup

To learn how to setup Crashlytics in your application code, choose your platform:

SDK Usage

The SDK provides a number of features to make crash reports more actionable.

  • Add custom keys

  • Add custom logs

  • Set user identifiers

  • Report non-fatal exceptions

To learn how to customize crash reports and add additional debugging data, consult the documentation for your platform.

Files

references/ios_setup.md

Firebase Crashlytics iOS Setup Guide

Important references:

  • Refer to the firebase-basics skills, particularly those for iOS setup, before proceeding.

  • Refer to the xcode-project-setup skills.

Project and App Setup

Use the firebase-tools CLI to set up the project if necessary.

  1. Find Bundle ID: Read the Xcode project to find the iOS bundle ID. Check the PRODUCT_BUNDLE_IDENTIFIER value in the .pbxproj file or the Info.plist file.

  2. Create Firebase Project: If no project exists, create one: npx -y firebase-tools@latest projects:create <project-id> --display-name="My Awesome App"

  3. Create Firebase App: Register the iOS app with the discovered bundle ID: npx -y firebase-tools@latest apps:create IOS <display-name> --bundle-id=<bundle-id>

  4. Link the GoogleService-Info.plist file: Use the script in the xcode-project-setup skill to obtain the config and link.

Add Swift Package Dependencies

Install the Crashlytics SDK using the Swift package manager, or the script in the xcode-project-setup skill.

Install the FirebaseCrashlytics package from the https://github.com/firebase/firebase-ios-sdk.git repository.

Initialize Firebase in App Code

Modify the application's entry point to initialize Firebase. Refer to the iOS setup reference in the firebase-basics skill.

Add dSYM Upload Script

Add a Run Script phase to the main app target in Xcode. This step is required to upload dSYM files for crash symbolication.

  1. Debug Information Format: The Debug Information Format in Build Settings must be set to DWARF with dSYM File.

  2. Run Script Content: A new "Run Script Phase" should be added to the target's "Build Phases" with the following content:

    ${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run

When using the xcode-project-setup skills, the above two steps will be done as part of adding the FirebaseCrashlytics package. Once the skill has been invoked and succeeded, verify that the app's project.pbxproj file contains a Run Script Build phase where the shell script attribute value contains 'Crashlytics'. Specifically, there should be a PBXShellScriptBuildPhase section with the attribute shellScript that is set to a value that contains Crashlytics/run and an attribute inputPaths where one of the values contains GoogleService-Info.plist. If verification is not successful, present the above two options to be done manually.

Follow up Steps

Required: Force a Test Crash
  1. Add code to trigger a crash a few seconds after app startup to verify Crashlytics setup.

For SwiftUI Apps (in AppDelegate.swift):

File: AppDelegate.swift

import UIKit
import FirebaseCore
import Dispatch // For DispatchQueue

// ...

class AppDelegate: NSObject, UIApplicationDelegate {
  func application(_ application: UIApplication,
                   didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
    FirebaseApp.configure()
    // Force a crash after a delay to test Crashlytics
    DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
        fatalError("Test Crash")
    }
    return true
  }
}
  1. Run your app on a device or simulator. If running in the iOS simulator, make sure that the Xcode debugger is disconnected, otherwise the crash will not make it to Crashlytics. The app should crash after a short delay.

  2. Restart the app. The Crashlytics SDK will send the crash report to Firebase on the next app launch.

  3. After a few minutes, the crash should be available in the Firebase console. Go to DevOps & Engagement > Crashlytics to view your dashboard and crash reports.

  • If the Firebase MCP server is installed, use the get_report tool to check that a crash was received.

  • As a fallback, visit the Crashlytics dashboard in the Firebase console to see the new crash report.

  1. After verifying that Firebase has received the crash report - either using the get_report tool or manually viewing it in the Firebase console - remove the code from step 1 that triggers the crash. This prevents the application from always crashing on start up after a delay.

Optional: Add custom debugging information

Customize reports to help you better understand what's happening in your app and the circumstances around events reported to Crashlytics. See Customize Crash Reports for Apple Platforms.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs an MCP server

The author says: This skill is best used with the Firebase CLI, but does not require it. Firebase CLI can be accessed through `npx -y firebase-tools@latest`.

Security

What our scanner noticed· Low risk

  • Instructions that use the network

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Google LLC
Publisher
Firebase (Google) (Official)
Distributed by
Firebase (Google)
Source
firebase/agent-skills · skills/firebase-crashlytics · commit b76be96
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Google LLC or Firebase (Google).

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download firebase-crashlytics.zip