Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions Xamarin.MacDev/MobileProvisionIndex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,12 +723,12 @@ public static IList<MobileProvision> GetMobileProvisions (MobileProvisionPlatfor
continue;
}

foreach (var cert in profile.DeveloperCertificates) {
if (!thumbprints.Contains (cert.Thumbprint)) {
failures?.Add ($"The profile '{profile.Name}' might not be applicable because its developer certificate (of {profile.DeveloperCertificates.Count} certificates) {cert.Name}'s thumbprint ({cert.Thumbprint}) is not in the list of accepted thumbprints ({string.Join (", ", thumbprints)}).");
continue;
}

var anyMatchingCerts = profile.DeveloperCertificates.Any (cert => thumbprints.Contains (cert.Thumbprint));
if (!anyMatchingCerts) {
failures?.Add ($"The profile '{profile.Name}' ({profile.ApplicationIdentifier}) is not applicable because none of its developer certificates match the currently available certificates. This provisioning profile has {profile.DeveloperCertificates.Count} certificate(s):");
foreach (var cert in profile.DeveloperCertificates)
failures?.Add ($" {cert.Name} ({cert.Thumbprint})");
} else {
if (unique) {
int idx;

Expand All @@ -744,7 +744,6 @@ public static IList<MobileProvision> GetMobileProvisions (MobileProvisionPlatfor
var provision = MobileProvision.LoadFromFile (profile.FileName);
list.Add (provision);
}
break;
}
}

Expand Down