From 19274c856a70d9ae52a2d1cf9a86a7ac60fa7cc6 Mon Sep 17 00:00:00 2001 From: Ivan Tustanivskyi Date: Tue, 24 Dec 2024 17:06:43 +0200 Subject: [PATCH] Fix macOS/iOS build due to missing `NS_SWIFT_SENDABLE` macro (#721) * Add check if `NS_SWIFT_SENDABLE` macro defined (for legacy Xcode versions) * Update changelog --- CHANGELOG.md | 4 ++++ .../Source/Sentry/Private/Apple/Convenience/SentryInclude.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80ec103d..35c77764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ - Add API allowing to start/finish transactions and spans with explicit timings ([#715](https://github.com/getsentry/sentry-unreal/pull/715)) - Add GPU crash dump attachments ([#712](https://github.com/getsentry/sentry-unreal/pull/712)) +### Fixes + +- Fix macOS/iOS build errors due to missing `NS_SWIFT_SENDABLE` macro definition ([#721](https://github.com/getsentry/sentry-unreal/pull/721)) + ### Dependencies - Bump Native SDK from v0.7.16 to v0.7.17 ([#717](https://github.com/getsentry/sentry-unreal/pull/717)) diff --git a/plugin-dev/Source/Sentry/Private/Apple/Convenience/SentryInclude.h b/plugin-dev/Source/Sentry/Private/Apple/Convenience/SentryInclude.h index 9194c833..3812b4a2 100644 --- a/plugin-dev/Source/Sentry/Private/Apple/Convenience/SentryInclude.h +++ b/plugin-dev/Source/Sentry/Private/Apple/Convenience/SentryInclude.h @@ -4,6 +4,10 @@ #include "HAL/Platform.h" +#ifndef NS_SWIFT_SENDABLE +#define NS_SWIFT_SENDABLE +#endif + #if PLATFORM_MAC #include #include