Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ecamacho opened this issue Sep 10, 2020 · 2 comments · Fixed by #6436
Closed

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

ecamacho opened this issue Sep 10, 2020 · 2 comments · Fixed by #6436

Comments

@ecamacho
Copy link

[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();
    }
    ...
}
@jostster
Copy link
Contributor

I'll double check this but signals should of been disabled for AW. Thanks for the report!

@ecamacho
Copy link
Author

@jostster thanks for the promptly response!

@firebase firebase locked and limited conversation to collaborators Oct 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants