Unverified Commit f5d2c8c7 authored by Jonah Williams's avatar Jonah Williams Committed by GitHub

[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.
parent 3cb04ff9
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment