You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
373
375
continue;
376
+
}
374
377
375
-
if(!profile.Platforms.Contains(platform))
378
+
if(!profile.Platforms.Contains(platform)){
379
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
406
412
continue;
413
+
}
407
414
408
-
if(!profile.Platforms.Contains(platform))
415
+
if(!profile.Platforms.Contains(platform)){
416
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
409
417
continue;
418
+
}
410
419
411
-
if(!includeExpired&&profile.ExpirationDate<now)
420
+
if(!includeExpired&&profile.ExpirationDate<now){
421
+
failures?.Add($"The profile '{profile.Name}' is not applicable because it has expired ({profile.ExpirationDate}).");
412
422
continue;
423
+
}
413
424
414
425
if(unique){
415
426
intidx;
@@ -431,7 +442,7 @@ public static IList<MobileProvision> GetMobileProvisions (MobileProvisionPlatfor
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
447
459
continue;
460
+
}
448
461
449
-
if(!profile.Platforms.Contains(platform))
462
+
if(!profile.Platforms.Contains(platform)){
463
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
450
464
continue;
465
+
}
451
466
452
-
if(!includeExpired&&profile.ExpirationDate<now)
467
+
if(!includeExpired&&profile.ExpirationDate<now){
468
+
failures?.Add($"The profile '{profile.Name}' is not applicable because it has expired ({profile.ExpirationDate}).");
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
501
521
continue;
522
+
}
502
523
503
-
if(!profile.Platforms.Contains(platform))
524
+
if(!profile.Platforms.Contains(platform)){
525
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
504
526
continue;
527
+
}
505
528
506
-
if(!includeExpired&&profile.ExpirationDate<now)
529
+
if(!includeExpired&&profile.ExpirationDate<now){
530
+
failures?.Add($"The profile '{profile.Name}' is not applicable because it has expired ({profile.ExpirationDate}).");
failures?.Add($"The profile '{profile.Name}' is not applicable because its ({profile.Distribution}) does not match the expected type ({type}).");
510
536
continue;
537
+
}
511
538
512
539
foreach(varcertinprofile.DeveloperCertificates){
513
-
if(!thumbprints.Contains(cert.Thumbprint))
540
+
if(!thumbprints.Contains(cert.Thumbprint)){
541
+
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)}).");
514
542
continue;
543
+
}
515
544
516
545
if(unique){
517
546
intidx;
@@ -535,7 +564,7 @@ public static IList<MobileProvision> GetMobileProvisions (MobileProvisionPlatfor
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
554
584
continue;
585
+
}
555
586
556
-
if(!profile.Platforms.Contains(platform))
587
+
if(!profile.Platforms.Contains(platform)){
588
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
557
589
continue;
590
+
}
558
591
559
-
if(!includeExpired&&profile.ExpirationDate<now)
592
+
if(!includeExpired&&profile.ExpirationDate<now){
593
+
failures?.Add($"The profile '{profile.Name}' is not applicable because it has expired ({profile.ExpirationDate}).");
failures?.Add($"The profile '{profile.Name}' is not applicable because its id ({profile.ApplicationIdentifier}) does not match the bundle identifer {bundleIdentifier}.");
577
615
continue;
616
+
}
578
617
}elseif(id!=bundleIdentifier){
579
618
// the CFBundleIdentifier provided by our caller does not match this provisioning profile
619
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its id ({profile.ApplicationIdentifier}) does not match the bundle identifer {bundleIdentifier}.");
580
620
continue;
581
621
}
582
622
@@ -600,7 +640,7 @@ public static IList<MobileProvision> GetMobileProvisions (MobileProvisionPlatfor
failures?.Add($"The profile '{profile.Name}' is not applicable because its FileName ({profile.FileName}) does not end with '{extension}'.");
629
670
continue;
671
+
}
630
672
631
-
if(!profile.Platforms.Contains(platform))
673
+
if(!profile.Platforms.Contains(platform)){
674
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its platforms ({string.Join(", ",profile.Platforms.Select((v)=>v.ToString()))}) do not match the requested platform ({platform}).");
632
675
continue;
676
+
}
633
677
634
-
if(!includeExpired&&profile.ExpirationDate<now)
678
+
if(!includeExpired&&profile.ExpirationDate<now){
679
+
failures?.Add($"The profile '{profile.Name}' is not applicable because it has expired ({profile.ExpirationDate}).");
failures?.Add($"The profile '{profile.Name}' is not applicable because its id ({profile.ApplicationIdentifier}) does not match the bundle identifer {bundleIdentifier}.");
652
701
continue;
702
+
}
653
703
}elseif(id!=bundleIdentifier){
654
704
// the CFBundleIdentifier provided by our caller does not match this provisioning profile
705
+
failures?.Add($"The profile '{profile.Name}' is not applicable because its id ({profile.ApplicationIdentifier}) does not match the bundle identifer {bundleIdentifier}.");
655
706
continue;
656
707
}
657
708
658
709
foreach(varcertinprofile.DeveloperCertificates){
659
-
if(!thumbprints.Contains(cert.Thumbprint))
710
+
if(!thumbprints.Contains(cert.Thumbprint)){
711
+
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)}).");
0 commit comments