mirror of
https://github.com/flutter/flutter.git
synced 2026-02-12 05:42:27 +08:00
Respect the --no-codesign flag even for simulators (#6799)
This commit is contained in:
parent
11ca0f1ada
commit
74e31679fb
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user