Commit 11e257c
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 #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: #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: 3ae7bd03431b225672ac4b4f7b91e6ef447650191 parent 141e021 commit 11e257c
2 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
68 | 77 | | |
69 | 78 | | |
70 | 79 | | |
| |||
0 commit comments