From 1c3128fc50db231d89c06eb59bf89426b770a7c6 Mon Sep 17 00:00:00 2001 From: ed Date: Tue, 11 Feb 2020 16:37:16 +0000 Subject: [PATCH] Projucer: Add push notifications entitlement to audio plug-in projects if exporter setting is enabled --- .../ProjectSaving/jucer_ProjectExport_Xcode.h | 52 +++++++++---------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index a9c9cde94e..e4fa36190a 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -3117,18 +3117,34 @@ private: { StringPairArray entitlements; - if (project.isAudioPluginProject()) + if (isiOS()) { - if (isiOS() && project.shouldEnableIAA()) + if (project.isAudioPluginProject() && project.shouldEnableIAA()) entitlements.set ("inter-app-audio", ""); + + if (isiCloudPermissionsEnabled()) + { + entitlements.set ("com.apple.developer.icloud-container-identifiers", + "\n" + " iCloud.$(CFBundleIdentifier)\n" + " "); + + entitlements.set ("com.apple.developer.icloud-services", + "\n" + " CloudDocuments\n" + " "); + + entitlements.set ("com.apple.developer.ubiquity-container-identifiers", + "\n" + " iCloud.$(CFBundleIdentifier)\n" + " "); + } } - else - { - if (isPushNotificationsEnabled()) - entitlements.set (isiOS() ? "aps-environment" - : "com.apple.developer.aps-environment", - "development"); - } + + if (isPushNotificationsEnabled()) + entitlements.set (isiOS() ? "aps-environment" + : "com.apple.developer.aps-environment", + "development"); if (isAppGroupsEnabled()) { @@ -3164,24 +3180,6 @@ private: entitlements.set (option, ""); } - if (isiOS() && isiCloudPermissionsEnabled()) - { - entitlements.set ("com.apple.developer.icloud-container-identifiers", - "\n" - " iCloud.$(CFBundleIdentifier)\n" - " "); - - entitlements.set ("com.apple.developer.icloud-services", - "\n" - " CloudDocuments\n" - " "); - - entitlements.set ("com.apple.developer.ubiquity-container-identifiers", - "\n" - " iCloud.$(CFBundleIdentifier)\n" - " "); - } - return entitlements; }