mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix mismatched bracket in Xcode failure diagnostic (#14478)
When diagnosing a failed Xcode build, if neither the development team (for automatic provisioning) nor the provisioning profile (for manual provisioning) is set, display the appropriate error message. Previously, this method would not output the appropriate error message if a only a development team was set.
This commit is contained in:
parent
23ee4a4af5
commit
024cebf8f3
@ -386,13 +386,13 @@ Future<Null> diagnoseXcodeBuildFailure(
|
||||
printError(noProvisioningProfileInstruction, emphasis: true);
|
||||
return;
|
||||
}
|
||||
// Make sure the user has specified one of:
|
||||
// * DEVELOPMENT_TEAM (automatic signing)
|
||||
// * PROVISIONING_PROFILE (manual signing)
|
||||
if (result.xcodeBuildExecution != null &&
|
||||
result.xcodeBuildExecution.buildForPhysicalDevice &&
|
||||
// Make sure the user has specified one of:
|
||||
// DEVELOPMENT_TEAM (automatic signing)
|
||||
// PROVISIONING_PROFILE (manual signing)
|
||||
!(app.buildSettings?.containsKey('DEVELOPMENT_TEAM')) == true
|
||||
|| app.buildSettings?.containsKey('PROVISIONING_PROFILE') == true) {
|
||||
app.buildSettings != null &&
|
||||
!<String>['DEVELOPMENT_TEAM', 'PROVISIONING_PROFILE'].any(app.buildSettings.containsKey)) {
|
||||
printError(noDevelopmentTeamInstruction, emphasis: true);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user