Skip to content

Conversation

@chrfalch
Copy link
Collaborator

@chrfalch chrfalch commented Jun 26, 2025

Summary:

To make sure we are exposing the same public API to swift as without prebuilt, this commit changes the follow:

  • ModuleMap / Umbrella file is generated from template, not dynamically to align with non-prebuilt (cocoapods)
  • Headers are extracted by reading from podspec files and expanding their globs. This is now easy since we can use the podspec_sources function to look for file globs.
  • To make sure we expose all the swift features that we should, we expose and declare a variable from React_RCTAppDelegate to validate that we support RCTAppDelegate

Changelog:

[IOS][FIXED] - refactored header/umbrella/modulemap generation for prebuild

Test Plan:

  • Run RN-tester with/without prebuilts
  • Create new RN app based on nightly, build with/without prebuiltsTo make sure we expose all the swift features that we should, we expose and declare a variable from React_RCTAppDelegate

chrfalch added 4 commits June 26, 2025 10:57
To make sure we expose all the swift features that we should, we expose and declare a variable from React_RCTAppDelegate
To make sure we are exposing the same public API to swift as without prebuilt, this commit changes the follow:

- ModuleMap / Umbrella file is generated from template, not dynamically to align with non-prebuilt (cocoapods)
- Headers are extracted by reading from podspec files and expanding their globs. This is now easy since we can use the podspec_sources function to look for file globs.
Headers for umbrella/module maps are moved into headers.js
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 26, 2025
@chrfalch chrfalch requested a review from cipolleschi June 26, 2025 09:09
@facebook-github-bot facebook-github-bot added p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Jun 26, 2025
Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

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

thanks for working on this!

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 26, 2025
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 47b2fe4.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 47b2fe4

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. p: Expo Partner: Expo Partner Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants