Commit 2796d745 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Fail to build for ios simulator in profile or release build mode (#5530)

parent da34ae65
......@@ -8,6 +8,7 @@ import 'package:path/path.dart' as path;
import '../application_package.dart';
import '../base/logger.dart';
import '../base/utils.dart';
import '../build_info.dart';
import '../globals.dart';
import '../ios/mac.dart';
......@@ -51,6 +52,11 @@ class BuildIOSCommand extends BuildSubCommand {
'have to manually codesign before deploying to device.');
}
if (forSimulator && !isEmulatorBuildMode(getBuildMode())) {
printError('${toTitleCase(getModeName(getBuildMode()))} mode is not supported for emulators.');
return 1;
}
String logTarget = forSimulator ? 'simulator' : 'device';
String typeName = path.basename(tools.getEngineArtifactsDirectory(TargetPlatform.ios, getBuildMode()).path);
......
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