From f5d2c8c77009f0a121da655c71d35927042808af Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Fri, 8 May 2020 17:35:40 -0700 Subject: [PATCH] [flutter_tools] fix documentation on default built ios (#56720) The default for build for flutter build ios should be release to match the other build commands. This is correctly handled in the command, but the documentation is incorrect. Update the documentation and the default to reflect the more common case of building for a physical device. --- packages/flutter_tools/lib/src/commands/build_ios.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/flutter_tools/lib/src/commands/build_ios.dart b/packages/flutter_tools/lib/src/commands/build_ios.dart index d46d067e82e..fb7a10b66d0 100644 --- a/packages/flutter_tools/lib/src/commands/build_ios.dart +++ b/packages/flutter_tools/lib/src/commands/build_ios.dart @@ -22,7 +22,7 @@ class BuildIOSCommand extends BuildSubCommand { BuildIOSCommand({ @required bool verboseHelp }) { addTreeShakeIconsFlag(); addSplitDebugInfoOption(); - addBuildModeFlags(defaultToRelease: false); + addBuildModeFlags(defaultToRelease: true); usesTargetOption(); usesFlavorOption(); usesPubOption(); @@ -35,7 +35,8 @@ class BuildIOSCommand extends BuildSubCommand { addBuildPerformanceFile(hide: !verboseHelp); argParser ..addFlag('simulator', - help: 'Build for the iOS simulator instead of the device.', + help: 'Build for the iOS simulator instead of the device. This changes ' + 'the default build mode to debug if otherwise unspecified.', ) ..addFlag('codesign', defaultsTo: true,