mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
show stdout on xcode failures
This commit is contained in:
parent
fbc61cb1ff
commit
f68d86dab2
|
@ -122,12 +122,20 @@ Future<bool> buildIOSXcodeProject(ApplicationPackage app, { bool buildForDevice
|
|||
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
|
||||
}
|
||||
|
||||
try {
|
||||
runCheckedSync(commands, workingDirectory: app.localPath);
|
||||
return true;
|
||||
} catch (error) {
|
||||
return false;
|
||||
printTrace(commands.join(' '));
|
||||
|
||||
ProcessResult result = Process.runSync(
|
||||
commands.first, commands.sublist(1), workingDirectory: app.localPath
|
||||
);
|
||||
|
||||
if (result.exitCode != 0) {
|
||||
if (result.stderr.isNotEmpty)
|
||||
printStatus(result.stderr);
|
||||
if (result.stdout.isNotEmpty)
|
||||
printStatus(result.stdout);
|
||||
}
|
||||
|
||||
return result.exitCode == 0;
|
||||
}
|
||||
|
||||
final RegExp _xcodeVersionRegExp = new RegExp(r'Xcode (\d+)\..*');
|
||||
|
|
Loading…
Reference in a new issue