A framework for building native applications using React
fix(precompile) fixed replace script deleting the react-vfs.yaml file on iOS (#55394)
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 https://github.com/facebook/react-native/issues/54842 and not yet released in any version. ## Changelog: [IOS] [FIXED] - Fixed replace script deleting the react-vfs.yaml file on iOS Pull Request resolved: https://github.com/facebook/react-native/pull/55394 Test Plan: Run RN-Tester with precompiled binaries and build both release and debug. Reviewed By: cortinico Differential Revision: D92159099 Pulled By: cipolleschi fbshipit-source-id: 3ae7bd03431b225672ac4b4f7b91e6ef44765019
C
Christian Falch committed
11e257cec09d1e69e7261fd769ad0f0e4007e09e
Parent: 141e021
Committed by meta-codesync[bot] <215208954+meta-codesync[bot]@users.noreply.github.com>
on 2/5/2026, 4:08:33 PM