Skip to content
Closed
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: 4 additions & 1 deletion Crashlytics/Crashlytics/Components/FIRCLSContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
typedef struct {
volatile bool initialized;
volatile bool debuggerAttached;
const char* previouslyCrashedFileFullPath;

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 48 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
const char* logPath;
// Initial report path represents the report path used to initialized the context;
// where non-on-demand exceptions and other crashes will be written.
Expand Down Expand Up @@ -99,5 +99,8 @@
bool FIRCLSContextHasCrashed(void);
void FIRCLSContextMarkHasCrashed(void);
bool FIRCLSContextMarkAndCheckIfCrashed(void);

void*(SecTaskCopyValueForEntitlement)(void* task,

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCopyValueForEntitlement'

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 102 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
CFStringRef entitlement,
CFErrorRef _Nullable* error);

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 104 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
void*(SecTaskCreateFromSelf)(CFAllocatorRef allocator);

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, watchOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCreateFromSelf'

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

conflicting types for 'SecTaskCreateFromSelf'

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, macOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCreateFromSelf'

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCreateFromSelf'

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check failure on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

conflicting types for 'SecTaskCreateFromSelf'

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, catalyst)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, visionOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-14, Xcode_16.2, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-26, Xcode_26.0, iOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]

Check warning on line 105 in Crashlytics/Crashlytics/Components/FIRCLSContext.h

View workflow job for this annotation

GitHub Actions / spm / spm (macos-15, Xcode_16.4, tvOS)

pointer is missing a nullability type specifier (_Nonnull, _Nullable, or _Null_unspecified) [-Wnullability-completeness]
__END_DECLS
17 changes: 13 additions & 4 deletions Crashlytics/Crashlytics/Components/FIRCLSContext.m
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,19 @@

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

FIRCLSMachExceptionInit(&_firclsContext.readonly->machException);
CFErrorRef err = nil;
// return number or nil if no such entitlement
// https://developer.apple.com/documentation/bundleresources/entitlements/com.apple.security.hardened-process.platform-restrictions
NSNumber* hasRuntimeRestriction = (__bridge NSNumber*)SecTaskCopyValueForEntitlement(
SecTaskCreateFromSelf(NULL),
CFSTR("com.apple.security.hardened-process.platform-restrictions"), &err);
// if does not have runtime restriction and no error
if (!hasRuntimeRestriction && !err) {
_firclsContext.readonly->machException.path =
FIRCLSContextAppendToRoot(rootPath, FIRCLSReportMachExceptionFile);

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

Expand Down
Loading