Change xcodebuild to be a "slow operation" (#61518)
The Xcode build almost always takes longer than 2 seconds. With the operation classified as a "fast operation", the Flutter tool will warn the user that the build is "taking an unexpectedly long time". This updates the operation to be a "slow operation", which will only warn the user if it takes 2+ minutes.
This commit is contained in:
parent
5e1635b186
commit
d009172fd2
@ -320,7 +320,7 @@ Future<XcodeBuildResult> buildXcodeProject({
|
|||||||
buildCommands.addAll(environmentVariablesAsXcodeBuildSettings(globals.platform));
|
buildCommands.addAll(environmentVariablesAsXcodeBuildSettings(globals.platform));
|
||||||
|
|
||||||
final Stopwatch sw = Stopwatch()..start();
|
final Stopwatch sw = Stopwatch()..start();
|
||||||
initialBuildStatus = globals.logger.startProgress('Running Xcode build...', timeout: timeoutConfiguration.fastOperation);
|
initialBuildStatus = globals.logger.startProgress('Running Xcode build...', timeout: timeoutConfiguration.slowOperation);
|
||||||
|
|
||||||
final RunResult buildResult = await _runBuildWithRetries(buildCommands, app);
|
final RunResult buildResult = await _runBuildWithRetries(buildCommands, app);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user