From 133f0b742289281188d86604634feaf8025c5615 Mon Sep 17 00:00:00 2001 From: Miklos Molnar Date: Sat, 3 Aug 2024 09:07:32 +0200 Subject: [PATCH 1/2] fix: Signals on visionOS --- Sources/Sentry/include/SentryInternalCDefines.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Sentry/include/SentryInternalCDefines.h b/Sources/Sentry/include/SentryInternalCDefines.h index 4b6144c6b76..b32762e9029 100644 --- a/Sources/Sentry/include/SentryInternalCDefines.h +++ b/Sources/Sentry/include/SentryInternalCDefines.h @@ -59,7 +59,7 @@ typedef unsigned long long bytes; // Mach APIs are explicitly marked as unavailable in tvOS and watchOS. // See https://github.com/getsentry/sentry-cocoa/issues/406#issuecomment-1171872518 -#if SENTRY_HOST_IOS || SENTRY_HOST_MAC +#if SENTRY_HOST_IOS || SENTRY_HOST_MAC || SENTRY_HOST_VISION # define SENTRY_HAS_MACH 1 #else # define SENTRY_HAS_MACH 0 @@ -67,19 +67,19 @@ typedef unsigned long long bytes; // signal APIs are explicitly marked as unavailable in watchOS. // See https://github.com/getsentry/sentry-cocoa/issues/406#issuecomment-1171872518 -#if SENTRY_HOST_IOS || SENTRY_HOST_MAC || SENTRY_HOST_TV +#if SENTRY_HOST_IOS || SENTRY_HOST_MAC || SENTRY_HOST_TV || SENTRY_HOST_VISION # define SENTRY_HAS_SIGNAL 1 #else # define SENTRY_HAS_SIGNAL 0 #endif -#if SENTRY_HOST_MAC || SENTRY_HOST_IOS +#if SENTRY_HOST_MAC || SENTRY_HOST_IOS || SENTRY_HOST_VISION # define SENTRY_HAS_SIGNAL_STACK 1 #else # define SENTRY_HAS_SIGNAL_STACK 0 #endif -#if SENTRY_HOST_MAC || SENTRY_HOST_IOS || SENTRY_HOST_TV +#if SENTRY_HOST_MAC || SENTRY_HOST_IOS || SENTRY_HOST_TV || SENTRY_HOST_VISION # define SENTRY_HAS_THREADS_API 1 #else # define SENTRY_HAS_THREADS_API 0 From c305eec38c2e02e55853bf7b45add8e05d6e7864 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Mon, 5 Aug 2024 13:16:18 +0200 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2529df68c2c..eba9f3de912 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - Guard FramesTracker start and stop (#4224) - Long-lasting TTID/TTFD spans (#4225). Avoid long TTID spans when the FrameTracker isn't running, which is the case when the app is in the background. - Missing mach info for crash reports (#4230) +- Crash reports not generated on visionOS (#4229) ### Improvements