Wire up ios-profile and ios-release. Switching between debug, profile and release starts the build process from scratch. (#4063)
diff --git a/packages/flutter_tools/lib/src/ios/simulators.dart b/packages/flutter_tools/lib/src/ios/simulators.dart
index 494511f..bf3afd0 100644
--- a/packages/flutter_tools/lib/src/ios/simulators.dart
+++ b/packages/flutter_tools/lib/src/ios/simulators.dart
@@ -433,7 +433,8 @@
@override
Future<LaunchResult> startApp(
- ApplicationPackage app, {
+ ApplicationPackage app,
+ BuildMode mode, {
String mainPath,
String route,
DebuggingOptions debuggingOptions,
@@ -531,7 +532,8 @@
Future<bool> _buildAndInstallApplicationBundle(ApplicationPackage app) async {
// Step 1: Build the Xcode project.
- bool buildResult = await buildIOSXcodeProject(app, buildForDevice: false);
+ // The build mode for the simulator is always debug.
+ bool buildResult = await buildIOSXcodeProject(app, BuildMode.debug, buildForDevice: false);
if (!buildResult) {
printError('Could not build the application for the simulator.');
return false;