From f217bce77a7750bb6a0e2e9756994b910b327fa4 Mon Sep 17 00:00:00 2001 From: Christian Falch Date: Tue, 8 Jul 2025 16:38:43 +0200 Subject: [PATCH] [ios][prebuilt] fixed using continue in loop 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. --- packages/react-native/scripts/ios-prebuild/headers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/scripts/ios-prebuild/headers.js b/packages/react-native/scripts/ios-prebuild/headers.js index a3f1bad1c0e..25b03daf1a6 100644 --- a/packages/react-native/scripts/ios-prebuild/headers.js +++ b/packages/react-native/scripts/ios-prebuild/headers.js @@ -49,7 +49,7 @@ function getHeaderFilesFromPodspecs( let arg2 = match[2]?.trim().replace(/['"]/g, ''); if (!arg2) { // Skip - return; + continue; } // Check if arg2 is an array (e.g., ['a', 'b']) if (arg2.startsWith('[') && arg2.endsWith(']')) {