Respect the --no-codesign flag even for simulators (#6799)
This commit is contained in:
@@ -141,19 +141,20 @@ Future<XcodeBuildResult> buildXcodeProject({
|
|||||||
|
|
||||||
if (buildForDevice) {
|
if (buildForDevice) {
|
||||||
commands.addAll(<String>['-sdk', 'iphoneos', '-arch', 'arm64']);
|
commands.addAll(<String>['-sdk', 'iphoneos', '-arch', 'arm64']);
|
||||||
if (!codesign) {
|
|
||||||
commands.addAll(
|
|
||||||
<String>[
|
|
||||||
'CODE_SIGNING_ALLOWED=NO',
|
|
||||||
'CODE_SIGNING_REQUIRED=NO',
|
|
||||||
'CODE_SIGNING_IDENTITY=""'
|
|
||||||
]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
commands.addAll(<String>['-sdk', 'iphonesimulator', '-arch', 'x86_64']);
|
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(
|
RunResult result = await runAsync(
|
||||||
commands,
|
commands,
|
||||||
workingDirectory: app.appDirectory,
|
workingDirectory: app.appDirectory,
|
||||||
|
|||||||
Reference in New Issue
Block a user