show stdout on xcode failures
diff --git a/packages/flutter_tools/lib/src/ios/mac.dart b/packages/flutter_tools/lib/src/ios/mac.dart
index df2ef7d..13c2258 100644
--- a/packages/flutter_tools/lib/src/ios/mac.dart
+++ b/packages/flutter_tools/lib/src/ios/mac.dart
@@ -122,12 +122,20 @@
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+)\..*');