From 0154233b064ef6d3c40493837b9f93fe03a88708 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 12 May 2016 15:48:27 -0400 Subject: [PATCH] [msbuild] Don't treat unsupported iCloud entitlements as errors in the build Fixes bug #40961 --- .../Tasks/CompileEntitlementsTaskBase.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/CompileEntitlementsTaskBase.cs b/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/CompileEntitlementsTaskBase.cs index b47112da4cc7..d3fa93de5358 100644 --- a/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/CompileEntitlementsTaskBase.cs +++ b/msbuild/Xamarin.MacDev.Tasks.Core/Tasks/CompileEntitlementsTaskBase.cs @@ -221,15 +221,10 @@ protected virtual PDictionary GetCompiledEntitlements (MobileProvision profile, item.Key == "com.apple.developer.icloud-container-identifiers" || item.Key == "com.apple.developer.icloud-container-environment" || item.Key == "com.apple.developer.icloud-services") { - if (profile == null) { - Log.LogError (null, null, null, Entitlements, 0, 0, 0, 0, "iCloud entitlements such as '" + item.Key + "' require a Provisioning Profile."); - continue; - } - - if (!profile.Entitlements.ContainsKey (item.Key)) { - Log.LogError (null, null, null, Entitlements, 0, 0, 0, 0, "The iCloud entitlement '" + item.Key + "' is not supported by the Provisioning Profile."); - continue; - } + if (profile == null) + Log.LogWarning (null, null, null, Entitlements, 0, 0, 0, 0, "iCloud entitlements such as '" + item.Key + "' require a Provisioning Profile."); + else if (!profile.Entitlements.ContainsKey (item.Key)) + Log.LogWarning (null, null, null, Entitlements, 0, 0, 0, 0, "The iCloud entitlement '" + item.Key + "' is not supported by the Provisioning Profile."); } else if (item.Key == ApplicationIdentifierKey) { var str = value as PString;