File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,8 +113,8 @@ async function _getAppPathFromBuildSettings(
113113
114114 // Parse the output to extract the app path
115115 const buildSettingsOutput = result . output ;
116- const builtProductsDirMatch = buildSettingsOutput . match ( / B U I L T _ P R O D U C T S _ D I R = ( .+ ) $ / m) ;
117- const fullProductNameMatch = buildSettingsOutput . match ( / F U L L _ P R O D U C T _ N A M E = ( .+ ) $ / m) ;
116+ const builtProductsDirMatch = buildSettingsOutput . match ( / ^ \s * B U I L T _ P R O D U C T S _ D I R \s * = \s * ( .+ ) $ / m) ;
117+ const fullProductNameMatch = buildSettingsOutput . match ( / ^ \s * F U L L _ P R O D U C T _ N A M E \s * = \s * ( .+ ) $ / m) ;
118118
119119 if ( ! builtProductsDirMatch || ! fullProductNameMatch ) {
120120 return { success : false , error : 'Could not extract app path from build settings' } ;
Original file line number Diff line number Diff line change @@ -214,8 +214,10 @@ export async function build_run_simulatorLogic(
214214 appBundlePath = appPathMatch [ 1 ] . trim ( ) ;
215215 } else {
216216 // Workspace approach: Extract BUILT_PRODUCTS_DIR and FULL_PRODUCT_NAME
217- const builtProductsDirMatch = buildSettingsOutput . match ( / B U I L T _ P R O D U C T S _ D I R = ( .+ ) $ / m) ;
218- const fullProductNameMatch = buildSettingsOutput . match ( / F U L L _ P R O D U C T _ N A M E = ( .+ ) $ / m) ;
217+ const builtProductsDirMatch = buildSettingsOutput . match (
218+ / ^ \s * B U I L T _ P R O D U C T S _ D I R \s * = \s * ( .+ ) $ / m,
219+ ) ;
220+ const fullProductNameMatch = buildSettingsOutput . match ( / ^ \s * F U L L _ P R O D U C T _ N A M E \s * = \s * ( .+ ) $ / m) ;
219221
220222 if ( builtProductsDirMatch && fullProductNameMatch ) {
221223 const builtProductsDir = builtProductsDirMatch [ 1 ] . trim ( ) ;
Original file line number Diff line number Diff line change @@ -224,8 +224,8 @@ export async function get_simulator_app_pathLogic(
224224 }
225225
226226 const buildSettingsOutput = result . output ;
227- const builtProductsDirMatch = buildSettingsOutput . match ( / B U I L T _ P R O D U C T S _ D I R = ( .+ ) $ / m) ;
228- const fullProductNameMatch = buildSettingsOutput . match ( / F U L L _ P R O D U C T _ N A M E = ( .+ ) $ / m) ;
227+ const builtProductsDirMatch = buildSettingsOutput . match ( / ^ \s * B U I L T _ P R O D U C T S _ D I R \s * = \s * ( .+ ) $ / m) ;
228+ const fullProductNameMatch = buildSettingsOutput . match ( / ^ \s * F U L L _ P R O D U C T _ N A M E \s * = \s * ( .+ ) $ / m) ;
229229
230230 if ( ! builtProductsDirMatch || ! fullProductNameMatch ) {
231231 return createTextResponse (
You can’t perform that action at this time.
0 commit comments