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,19 +141,20 @@ Future<XcodeBuildResult> buildXcodeProject({
if (buildForDevice) {
commands.addAll(<String>['-sdk', 'iphoneos', '-arch', 'arm64']);
if (!codesign) {
commands.addAll(
<String>[
'CODE_SIGNING_ALLOWED=NO',
'CODE_SIGNING_REQUIRED=NO',
'CODE_SIGNING_IDENTITY=""'
]
);
}
} else {
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
}
if (!codesign) {
commands.addAll(
<String>[
'CODE_SIGNING_ALLOWED=NO',
'CODE_SIGNING_REQUIRED=NO',
'CODE_SIGNING_IDENTITY=""'
]
);
}
RunResult result = await runAsync(
commands,
workingDirectory: app.appDirectory,
......
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