Skip to content

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.

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. 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.

4 participants