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;
}