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

This commit is contained in:
Todd Volkert 2016-11-10 10:30:17 -08:00 committed by GitHub
parent 11ca0f1ada
commit 74e31679fb

View File

@ -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,