Fail to build for ios simulator in profile or release build mode (#5530)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user