Commit 3fad7dc
refactor header files generator for prebuilt React framework (#54841)
Summary:
Replace the regex-based approach for parsing podspec files with a declarative configuration system for header file collection:
Add headers-config.js with explicit podspec configurations defining header patterns, directories, and subspecs
- Add vfs.js to generate VFS overlay YAML files for Clang virtual file system support
- Refactor headers.js to use the new configuration-based approach with support for nested subspecs and path preservation
- Update xcframework.js to handle the new header mapping structure with source/target paths
- This provides more reliable and maintainable header file collection for XCFramework builds by avoiding fragile regex parsing of Ruby podspec files.
Prev PR: #54840
Next PR: #54842
bypass-github-export-checks
## Changelog:
[IOS] [FIXED] - refactored header files generator for prebuilt React framework
Pull Request resolved: #54841
Test Plan: Run RNTester with prebuilt
Reviewed By: cortinico
Differential Revision: D90674355
Pulled By: cipolleschi
fbshipit-source-id: 66ec997a8731b6bf91a8f3c2ab42a94e7b0601e81 parent c502c5e commit 3fad7dc
4 files changed
Lines changed: 735 additions & 82 deletions
File tree
- packages/react-native
- ReactApple/RCTSwiftUIWrapper
- scripts/ios-prebuild
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments