Skip to content

Commit dd37e55

Browse files
Throw error in case build for simulator fails (#2699)
When build for iOS Simulator fails, we do not break the process and hide the error. In any case when build operation fails, we should break the process.
1 parent f329af7 commit dd37e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/services/ios-project-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ export class IOSProjectService extends projectServiceBaseLib.PlatformProjectServ
453453

454454
await this.$childProcess.spawnFromEvent("xcodebuild", args, "exit",
455455
{ stdio: buildOutputStdio || "inherit", cwd: this.getPlatformData(projectData).projectRoot },
456-
{ emitOptions: { eventName: constants.BUILD_OUTPUT_EVENT_NAME }, throwError: false });
456+
{ emitOptions: { eventName: constants.BUILD_OUTPUT_EVENT_NAME }, throwError: true });
457457
}
458458

459459
private async createIpa(projectRoot: string, projectData: IProjectData, buildConfig: IBuildConfig): Promise<string> {

0 commit comments

Comments
 (0)