From 13f8332f83cf9d893844e57e34508587684d7308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Vanda=C3=ABle?= <35473174+AurelienV-42@users.noreply.github.com> Date: Tue, 11 Aug 2026 14:04:24 +0200 Subject: [PATCH] fix(ios): Swift header not found under Xcode 26 explicit modules Add conditional import for Swift header based on availability. --- packages/purchasely/ios/PurchaselyRN.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/purchasely/ios/PurchaselyRN.m b/packages/purchasely/ios/PurchaselyRN.m index eedef6dc..4100d2cb 100644 --- a/packages/purchasely/ios/PurchaselyRN.m +++ b/packages/purchasely/ios/PurchaselyRN.m @@ -22,7 +22,11 @@ // the iOS build/E2E CI jobs). If a custom target label ever changes the module // name, this single line fails with a "file not found" error naming this exact // header, localizing the fix. +#if __has_include() +#import +#else #import "react_native_purchasely-Swift.h" +#endif #pragma mark - event names