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 diff --git a/Sources/Sentry/include/SentryInternalCDefines.h b/Sources/Sentry/include/SentryInternalCDefines.h index c62290443d3..040e3a3ade7 100644 --- a/Sources/Sentry/include/SentryInternalCDefines.h +++ b/Sources/Sentry/include/SentryInternalCDefines.h @@ -63,7 +63,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 @@ -71,19 +71,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