From a4d4e44d5b70ed3f74ffdd41ebd4b1af26592656 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Tue, 19 May 2026 09:28:03 +0200 Subject: [PATCH] fix(ios): Use conditional import for SentrySwizzle.h to support both CocoaPods and SPM Co-Authored-By: Claude Opus 4.6 --- packages/core/ios/RNSentryRNSScreen.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/core/ios/RNSentryRNSScreen.m b/packages/core/ios/RNSentryRNSScreen.m index 90b2e733d3..91bbb58c08 100644 --- a/packages/core/ios/RNSentryRNSScreen.m +++ b/packages/core/ios/RNSentryRNSScreen.m @@ -4,7 +4,11 @@ # import "RNSentryDependencyContainer.h" # import "RNSentryFramesTrackerListener.h" -# import +# if __has_include() +# import +# else +# import "SentrySwizzle.h" +# endif @import Sentry; @implementation RNSentryRNSScreen