File tree Expand file tree Collapse file tree
packages/cli-platform-apple/src/commands/runCommand Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,17 +38,13 @@ export async function getBuildSettings(
3838
3939 // Find all 'app' targets in the build settings
4040 const applicationTargets = settings
41- . filter (
42- ( setting : any ) =>
43- setting . buildSettings . WRAPPER_EXTENSION ===
44- 'app' ,
45- )
41+ . filter ( ( setting : any ) => setting . buildSettings . WRAPPER_EXTENSION === 'app' )
4642 . map ( ( { target : settingsTarget } : any ) => settingsTarget ) ;
4743
4844 if ( applicationTargets . length === 0 ) return null
49-
45+
5046 let selectedTarget = applicationTargets [ 0 ] ;
51-
47+
5248 if ( target ) {
5349 if ( ! applicationTargets . includes ( target ) ) {
5450 logger . info (
@@ -60,7 +56,7 @@ export async function getBuildSettings(
6056 selectedTarget = target ;
6157 }
6258 }
63-
59+
6460 const targetIndex = applicationTargets . indexOf ( selectedTarget ) ;
6561 return settings [ targetIndex ] . buildSettings ;
6662}
You can’t perform that action at this time.
0 commit comments