Skip to content

Commit 75dcb5f

Browse files
chrfalchmotiz88
authored andcommitted
fix wrong use of return in header file generation loop (#52490)
Summary: Instead of returning when creating the list of header files from our podspecs, we now call `continue`. This is a bug that causes all subsequent globs in the header file list to be omitted after the first omitted glob. bypass-github-export-checks ## Changelog: [IOS] [FIXED] - Fixed premature return in header file generation from podspec globs Pull Request resolved: #52490 Test Plan: Run prebuild scripts and verify that React-Fabric podspec headers are included in the resulting xcframework. Reviewed By: mdvacca Differential Revision: D78012399 Pulled By: cipolleschi fbshipit-source-id: 2d334f4f7ff966ea4c778786a7056e13a255a708
1 parent 9c4da7b commit 75dcb5f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/react-native/scripts/ios-prebuild

packages/react-native/scripts/ios-prebuild/headers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function getHeaderFilesFromPodspecs(
4949
let arg2 = match[2]?.trim().replace(/['"]/g, '');
5050
if (!arg2) {
5151
// Skip
52-
return;
52+
continue;
5353
}
5454
// Check if arg2 is an array (e.g., ['a', 'b'])
5555
if (arg2.startsWith('[') && arg2.endsWith(']')) {

0 commit comments

Comments
 (0)