| @@ -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", "<true/>"); | |||
| if (isiCloudPermissionsEnabled()) | |||
| { | |||
| entitlements.set ("com.apple.developer.icloud-container-identifiers", | |||
| "<array>\n" | |||
| " <string>iCloud.$(CFBundleIdentifier)</string>\n" | |||
| " </array>"); | |||
| entitlements.set ("com.apple.developer.icloud-services", | |||
| "<array>\n" | |||
| " <string>CloudDocuments</string>\n" | |||
| " </array>"); | |||
| entitlements.set ("com.apple.developer.ubiquity-container-identifiers", | |||
| "<array>\n" | |||
| " <string>iCloud.$(CFBundleIdentifier)</string>\n" | |||
| " </array>"); | |||
| } | |||
| } | |||
| else | |||
| { | |||
| if (isPushNotificationsEnabled()) | |||
| entitlements.set (isiOS() ? "aps-environment" | |||
| : "com.apple.developer.aps-environment", | |||
| "<string>development</string>"); | |||
| } | |||
| if (isPushNotificationsEnabled()) | |||
| entitlements.set (isiOS() ? "aps-environment" | |||
| : "com.apple.developer.aps-environment", | |||
| "<string>development</string>"); | |||
| if (isAppGroupsEnabled()) | |||
| { | |||
| @@ -3164,24 +3180,6 @@ private: | |||
| entitlements.set (option, "<true/>"); | |||
| } | |||
| if (isiOS() && isiCloudPermissionsEnabled()) | |||
| { | |||
| entitlements.set ("com.apple.developer.icloud-container-identifiers", | |||
| "<array>\n" | |||
| " <string>iCloud.$(CFBundleIdentifier)</string>\n" | |||
| " </array>"); | |||
| entitlements.set ("com.apple.developer.icloud-services", | |||
| "<array>\n" | |||
| " <string>CloudDocuments</string>\n" | |||
| " </array>"); | |||
| entitlements.set ("com.apple.developer.ubiquity-container-identifiers", | |||
| "<array>\n" | |||
| " <string>iCloud.$(CFBundleIdentifier)</string>\n" | |||
| " </array>"); | |||
| } | |||
| return entitlements; | |||
| } | |||