Unverified Commit 80c10bc4 authored by xster's avatar xster Committed by GitHub

Work around xcodebuild's undocumented freeze when -showBuildSettings is used...

Work around xcodebuild's undocumented freeze when -showBuildSettings is used with -allowProvisioning* (#14684)
parent f802cf6d
......@@ -357,7 +357,18 @@ Future<XcodeBuildResult> buildXcodeProject({
// Run -showBuildSettings again but with the exact same parameters as the build.
final Map<String, String> buildSettings = parseXcodeBuildSettings(runCheckedSync(
new List<String>.from(buildCommands)..add('-showBuildSettings'),
(new List<String>
.from(buildCommands)
..add('-showBuildSettings'))
// Undocumented behaviour: xcodebuild craps out if -showBuildSettings
// is used together with -allowProvisioningUpdates or
// -allowProvisioningDeviceRegistration and freezes forever.
.where((String buildCommand) {
return !const <String>[
'-allowProvisioningUpdates',
'-allowProvisioningDeviceRegistration',
].contains(buildCommand);
}),
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