mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[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.
This commit is contained in:
parent
3cb04ff9aa
commit
f5d2c8c770
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user