Skip to content

Commit

Permalink
display parsed errors separately
Browse files Browse the repository at this point in the history
  • Loading branch information
TMisiukiewicz authored and szymonrybczak committed Jun 4, 2024
1 parent 09b7ef5 commit 86a4087
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,22 @@ export function buildProject(
if (code !== 0) {
printRunDoctorTip();
if (!xcodebuildOutputFormatter) {
logger.log(buildOutput);
Array.from(prettifyXcodebuildMessages(buildOutput)).forEach((error) =>
logger.error(error),
);
}

reject(
new CLIError(
xcbeautifyAvailable()
? `
new CLIError(`
Failed to build ${platform} project.
"xcodebuild" exited with error code '${code}'. To debug build
logs further, consider building your app with Xcode.app, by opening
'${xcodeProject.name}'.
`
: Array.from(prettifyXcodebuildMessages(buildOutput)).join('\n'),
),
'${xcodeProject.name}'.`),
);
return;
}

logger.success('Successfully built the app');
resolve(buildOutput);
});
Expand Down

0 comments on commit 86a4087

Please sign in to comment.