Merge pull request #1371 from abarth/silence_xcodebuild

flutter start shouldn't log xcodebuild output
This commit is contained in:
Adam Barth
2016-01-25 18:59:37 -08:00

View File

@@ -539,14 +539,14 @@ Future<bool> _buildIOSXcodeProject(ApplicationPackage app, bool isDevice) async
return false;
List<String> command = [
'/usr/bin/env', 'xcrun', 'xcodebuild', '-target', 'Runner', '-configuration', 'Release'
'xcrun', 'xcodebuild', '-target', 'Runner', '-configuration', 'Release'
];
if (!isDevice) {
command.addAll(['-sdk', 'iphonesimulator']);
}
int result = await runCommandAndStreamOutput(command,
ProcessResult result = await Process.runSync('/usr/bin/env', command,
workingDirectory: app.localPath);
return result == 0;
return result.exitCode == 0;
}