@@ -57,7 +57,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
57
57
private $plistParser : IPlistParser ,
58
58
private $sysInfo : ISysInfo ,
59
59
private $xCConfigService : XCConfigService ) {
60
- super ( $fs , $projectDataService ) ;
60
+ super ( $fs , $projectDataService ) ;
61
61
}
62
62
63
63
private _platformsDirCache : string = null ;
@@ -442,11 +442,19 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
442
442
localArgs . push ( "-quiet" ) ;
443
443
this . $logger . info ( "Xcode build..." ) ;
444
444
}
445
- return this . $childProcess . spawnFromEvent ( "xcodebuild" ,
446
- localArgs ,
447
- "exit" ,
448
- { stdio : stdio || "inherit" , cwd } ,
449
- { emitOptions : { eventName : constants . BUILD_OUTPUT_EVENT_NAME } , throwError : true } ) ;
445
+
446
+ let commandResult ;
447
+ try {
448
+ commandResult = await this . $childProcess . spawnFromEvent ( "xcodebuild" ,
449
+ localArgs ,
450
+ "exit" ,
451
+ { stdio : stdio || "inherit" , cwd } ,
452
+ { emitOptions : { eventName : constants . BUILD_OUTPUT_EVENT_NAME } , throwError : true } ) ;
453
+ } catch ( err ) {
454
+ this . $errors . failWithoutHelp ( err . message ) ;
455
+ }
456
+
457
+ return commandResult ;
450
458
}
451
459
452
460
private async setupSigningFromTeam ( projectRoot : string , projectData : IProjectData , teamId : string ) {
@@ -1112,7 +1120,7 @@ We will now place an empty obsolete compatability white screen LauncScreen.xib f
1112
1120
private async prepareNativeSourceCode ( pluginName : string , pluginPlatformsFolderPath : string , projectData : IProjectData ) : Promise < void > {
1113
1121
const project = this . createPbxProj ( projectData ) ;
1114
1122
const group = this . getRootGroup ( pluginName , pluginPlatformsFolderPath ) ;
1115
- project . addPbxGroup ( group . files , group . name , group . path , null , { isMain :true } ) ;
1123
+ project . addPbxGroup ( group . files , group . name , group . path , null , { isMain : true } ) ;
1116
1124
project . addToHeaderSearchPaths ( group . path ) ;
1117
1125
this . savePbxProj ( project , projectData ) ;
1118
1126
}
0 commit comments