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; }