fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS#55394
Closed
fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS#55394
Conversation
… 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.
Reading dirent.name failed - let's fix it!
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this in D92159099. |
cortinico
approved these changes
Feb 5, 2026
Contributor
cortinico
left a comment
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
|
@cipolleschi merged this pull request in 11e257c. |
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
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? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.