Commit 74e31679 authored by Todd Volkert's avatar Todd Volkert Committed by GitHub

Respect the --no-codesign flag even for simulators (#6799)

parent 11ca0f1a
......@@ -141,6 +141,10 @@ Future<XcodeBuildResult> buildXcodeProject({
if (buildForDevice) {
commands.addAll(<String>['-sdk', 'iphoneos', '-arch', 'arm64']);
} else {
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
}
if (!codesign) {
commands.addAll(
<String>[
......@@ -150,9 +154,6 @@ Future<XcodeBuildResult> buildXcodeProject({
]
);
}
} else {
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
}
RunResult result = await runAsync(
commands,
......
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