fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS #55394
+13
−4
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.