Skip to content

fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS#55394

Closed
chrfalch wants to merge 2 commits intomainfrom
@chrfalch/fix-rncore-replace-script-deleting-react-vfs
Closed

fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS#55394
chrfalch wants to merge 2 commits intomainfrom
@chrfalch/fix-rncore-replace-script-deleting-react-vfs

Conversation

@chrfalch
Copy link
Collaborator

@chrfalch chrfalch commented Feb 3, 2026

Summary:

When the user switches from Debug -> Release we'll replace the React-Core-prebuilt XCFramework.

Previously we nuked the ios/Pods/React-Core-prebuilt folder - but after we added support for VFS overlays to honor header files in the XCFramework this folder will also contain the VFS-file (React-VFS.yaml) which shouldn't be removed.

Removing this file causes an error when building.

This commit fixes this by deleting all directories inside the Pods/React-Core-prebuilt folder, leaving any files (React-VFS.yaml) untouched.

I've tested this in a new project and in RN-Tester and it works. I measured the size of the XCFramework when switching between Debug/Release to confirm that the switch still works.

I also changed the name of the podspec script since it showd RNDeps and not RNCore.

This issue was introduced in #54842 and not yet released in any version.

Changelog:

[IOS] [FIXED] - Fixed replace script deleting the react-vfs.yaml file on iOS

Test Plan:

Run RN-Tester with precompiled binaries and build both release and debug.

… on iOS

When the user switches from Debug -> Release we'll replace the React-Core-prebuilt XCFramework.

Previously we nuked the ios/Pods/React-Core-prebuilt folder - but after we added support for VFS overlays to honor header files in the XCFramework this folder will also contain the VFS-file (React-VFS.yaml) which shouldn't be removed.

Removing this file causes an error when building.

This commit fixes this by deleting all directories inside the Pods/React-Core-prebuilt folder, leaving any files (React-VFS.yaml) untouched.

I've tested this in a new project and in RN-Tester and it works. I measured the size of the XCFramework when switching between Debug/Release to confirm that the switch still works.

I also changed the name of the podspec script since it showd RNDeps and not RNCore.
@meta-cla meta-cla 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 Feb 3, 2026
@chrfalch chrfalch requested a review from cipolleschi February 3, 2026 12:17
@facebook-github-bot facebook-github-bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Feb 3, 2026
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 the fix!

Reading dirent.name failed - let's fix it!
@meta-codesync
Copy link

meta-codesync bot commented Feb 3, 2026

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D92159099.

Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@meta-codesync meta-codesync bot closed this in 11e257c Feb 5, 2026
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Feb 5, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 5, 2026

@cipolleschi merged this pull request in 11e257c.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 11e257c

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

1 similar comment
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @chrfalch in 11e257c

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