Skip to content

MOBILE-106: Fix iOS New Architecture guard and Swift header import#171

Merged
sergeysozinov merged 1 commit intonew-archfrom
feature/MOBILE-106
Apr 30, 2026
Merged

MOBILE-106: Fix iOS New Architecture guard and Swift header import#171
sergeysozinov merged 1 commit intonew-archfrom
feature/MOBILE-106

Conversation

@sergeysozinov
Copy link
Copy Markdown
Collaborator

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes iOS build-time guards/imports so the Mindbox React Native module reliably compiles only with the New Architecture enabled and can find the generated Swift bridging header across different CocoaPods header layouts.

Changes:

  • Update the New Architecture preprocessor guard to fail the build when RCT_NEW_ARCH_ENABLED is missing or not set to 1.
  • Make the Swift generated header import resilient by trying both local and module-style include paths, with a clearer compile-time error if missing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
ios/MindboxSdkNewArchGuard.mm Tightens the compile-time guard to enforce RCT_NEW_ARCH_ENABLED=1.
ios/MindboxSdk.mm Adds __has_include-based fallback imports for MindboxSdk-Swift.h (local vs modular).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sergeysozinov sergeysozinov merged commit 91aabae into new-arch Apr 30, 2026
8 checks passed
@sergeysozinov sergeysozinov deleted the feature/MOBILE-106 branch April 30, 2026 12:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants