From 4a01299827a78275aa77e837f6a6e4fef477d1c7 Mon Sep 17 00:00:00 2001 From: Adam Barth Date: Mon, 25 Jan 2016 14:09:11 -0800 Subject: [PATCH] flutter start shouldn't log xcodebuild output Xcodebuild produces a lot of output that isn't relevant to developers. We should hide it by default. --- packages/flutter_tools/lib/src/ios/device_ios.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/flutter_tools/lib/src/ios/device_ios.dart b/packages/flutter_tools/lib/src/ios/device_ios.dart index d23e665596..69beb86fec 100644 --- a/packages/flutter_tools/lib/src/ios/device_ios.dart +++ b/packages/flutter_tools/lib/src/ios/device_ios.dart @@ -539,14 +539,14 @@ Future _buildIOSXcodeProject(ApplicationPackage app, bool isDevice) async return false; List 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; }