Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Crashlytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Unreleased
- [fixed] Installed Crashlytics signal and mach exception handlers synchronously to
improve compatibility with other crash reporters and runtime environments (like
Mono/Xamarin). (#15383)

# 12.4.0
- [fixed] Make set development platform APIs to chain on Crashlytics context init promise.

Expand Down
16 changes: 6 additions & 10 deletions Crashlytics/Crashlytics/Components/FIRCLSContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -172,21 +172,17 @@
// simulator to crash.
if (!_firclsContext.readonly->debuggerAttached) {
#if CLS_SIGNAL_SUPPORTED
dispatch_group_async(group, queue, ^{
_firclsContext.readonly->signal.path =
FIRCLSContextAppendToRoot(rootPath, FIRCLSReportSignalFile);
_firclsContext.readonly->signal.path =
FIRCLSContextAppendToRoot(rootPath, FIRCLSReportSignalFile);

FIRCLSSignalInitialize(&_firclsContext.readonly->signal);
});
FIRCLSSignalInitialize(&_firclsContext.readonly->signal);
#endif

#if CLS_MACH_EXCEPTION_SUPPORTED
dispatch_group_async(group, queue, ^{
_firclsContext.readonly->machException.path =
FIRCLSContextAppendToRoot(rootPath, FIRCLSReportMachExceptionFile);
_firclsContext.readonly->machException.path =
FIRCLSContextAppendToRoot(rootPath, FIRCLSReportMachExceptionFile);

FIRCLSMachExceptionInit(&_firclsContext.readonly->machException);
});
FIRCLSMachExceptionInit(&_firclsContext.readonly->machException);
#endif

dispatch_group_async(group, queue, ^{
Expand Down
Loading