Commit f68d86da authored by Devon Carew's avatar Devon Carew

show stdout on xcode failures

parent fbc61cb1
...@@ -122,12 +122,20 @@ Future<bool> buildIOSXcodeProject(ApplicationPackage app, { bool buildForDevice ...@@ -122,12 +122,20 @@ Future<bool> buildIOSXcodeProject(ApplicationPackage app, { bool buildForDevice
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']); commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
} }
try { printTrace(commands.join(' '));
runCheckedSync(commands, workingDirectory: app.localPath);
return true; ProcessResult result = Process.runSync(
} catch (error) { commands.first, commands.sublist(1), workingDirectory: app.localPath
return false; );
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+)\..*'); final RegExp _xcodeVersionRegExp = new RegExp(r'Xcode (\d+)\..*');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment