Created
October 3, 2011 10:26
-
-
Save alanmcgovern/1258838 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 3e91db7d600b7d92b327aa6b6550882ed1321be3 | |
Author: Alan McGovern <alan.mcgovern@gmail.com> | |
Date: Mon Oct 3 11:24:15 2011 +0100 | |
[IPhone] Give a better warning message if there are no provisioning profiles | |
Direct the user to visit the iOS provisioning portal if they have | |
no provisioning profiles installed. | |
diff --git a/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs b/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs | |
index e918647..99b43f1 100644 | |
--- a/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs | |
+++ b/MonoDevelop.IPhone/MonoDevelop.IPhone/Project/IPhoneBuildExtension.cs | |
@@ -1162,7 +1162,15 @@ namespace MonoDevelop.IPhone | |
return result; | |
} | |
- var pairs = (from p in MobileProvision.GetAllInstalledProvisions () | |
+ var profiles = MobileProvision.GetAllInstalledProvisions (); | |
+ if (profiles.Count == 0) { | |
+ var msg = GettextCatalog.GetString ("No provisioning profiles have been detected. Please visit the iOS provisioning portal to create one"); | |
+ monitor.ReportError (msg, null); | |
+ result.AddError (msg); | |
+ return result; | |
+ } | |
+ | |
+ var pairs = (from p in profiles | |
from c in certs | |
where p.DeveloperCertificates.Any (d => d.Thumbprint == c.Thumbprint) | |
select new { Cert = c, Profile = p }).ToList (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment