Skip to content

Crashlytics crashes in WatchOS with sigaction on fatal signals is not supported #6434

Closed
@ecamacho

Description

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.6
  • Firebase SDK version: 6.31.0
  • Firebase Component: Crashlytics
  • Component version: 4.5.0
  • Installation method: CocoaPods

[REQUIRED] Step 2: Describe the problem

After issue #4558 was closed thanks to PR #6262 I was looking forward to use it in my WatchApp but it doesn't work.

The Watch App Crashes with the message sigaction on fatal signals is not supported in file FIRCLSSignal.c:96.

A quick google search for that message leads to this relevant part of Apple's open source code that suggest WatchOS doesn't support the use of sigaction

Steps to reproduce:

  1. Create an iOS app and add a WatchOS App
  2. Add Crashlytics to the Watch Extension target
  3. Initialise Crashlytics in the WKExtensionDelegate applicationDidFinishLaunching
  4. Run the app on a device without debugging

Relevant Code:

Cocoapods file:

target 'WatchOSCrashlytics' do
  platform :ios, '11.0'
  use_frameworks!
  pod 'FirebaseCrashlytics', '~> 4.5.0'
end

target 'WatchApp Extension' do
  use_frameworks!
  platform :watchos, '6.0'
  pod 'FirebaseCrashlytics', '~> 4.5.0'
end

Extension delegate

import FirebaseCore

class ExtensionDelegate: NSObject, WKExtensionDelegate {

    func applicationDidFinishLaunching() {
        FirebaseConfiguration.shared.setLoggerLevel(.debug)
        FirebaseApp.configure();
    }
    ...
}

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions