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