Skip to content

Commit 3fad7dc

Browse files
chrfalchmeta-codesync[bot]
authored andcommitted
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: 66ec997a8731b6bf91a8f3c2ab42a94e7b0601e8
1 parent c502c5e commit 3fad7dc

4 files changed

Lines changed: 735 additions & 82 deletions

File tree

packages/react-native/ReactApple/RCTSwiftUIWrapper/RCTSwiftUIWrapper.podspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ Pod::Spec.new do |s|
2525
s.author = "Meta Platforms, Inc. and its affiliates"
2626
s.platforms = min_supported_versions
2727
s.source = source
28-
s.source_files = "*.{h,m}"
28+
s.source_files = podspec_sources("*.{h,m}", "*.{h}")
2929
s.public_header_files = "*.h"
3030
s.module_name = "RCTSwiftUIWrapper"
3131
s.header_dir = "RCTSwiftUIWrapper"
3232
s.dependency "RCTSwiftUI"
33-
3433
s.pod_target_xcconfig = {
3534
"SWIFT_VERSION" => "5.0",
3635
}

0 commit comments

Comments
 (0)