Crashlytics crashes in WatchOS with sigaction on fatal signals is not supported #6434
Closed
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:
- Create an iOS app and add a WatchOS App
- Add Crashlytics to the Watch Extension target
- Initialise Crashlytics in the
WKExtensionDelegate
applicationDidFinishLaunching - 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();
}
...
}