1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-09 23:34:20 +00:00
This commit is contained in:
jonathan schatz 2026-01-08 08:16:33 +00:00 committed by GitHub
commit 85f0e1cb80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 24 additions and 22 deletions

View file

@ -62,24 +62,24 @@ namespace juce:: build_tools
// entitlement iOS apps are unable to access AUv3 plug-ins.
if ((isAudioPluginProject && shouldEnableIAA) || isAUPluginHost)
entitlements.set ("inter-app-audio", "<true/>");
}
if (isiCloudPermissionsEnabled)
{
if (isiCloudPermissionsEnabled)
{
entitlements.set ("com.apple.developer.icloud-container-identifiers",
"<array>\n"
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
" </array>");
entitlements.set ("com.apple.developer.icloud-container-identifiers",
"<array>\n"
"\t\t<string>iCloud." + projectBundlerIdentifierString.trim() + "</string>\n"
"\t</array>");
entitlements.set ("com.apple.developer.icloud-services",
"<array>\n"
" <string>CloudDocuments</string>\n"
" </array>");
entitlements.set ("com.apple.developer.icloud-services",
"<array>\n"
"\t\t<string>CloudDocuments</string>\n"
"\t</array>");
entitlements.set ("com.apple.developer.ubiquity-container-identifiers",
"<array>\n"
" <string>iCloud.$(CFBundleIdentifier)</string>\n"
" </array>");
}
entitlements.set ("com.apple.developer.ubiquity-container-identifiers",
"<array>\n"
"\t\t<string>iCloud." + projectBundlerIdentifierString.trim() + "</string>\n"
"\t</array>");
}
if (isPushNotificationsEnabled)

View file

@ -54,7 +54,7 @@ namespace juce::build_tools
bool isNetworkingMulticastEnabled = false;
String appGroupIdString;
String projectBundlerIdentifierString;
StringArray hardenedRuntimeOptions;
StringArray appSandboxOptions;

View file

@ -400,7 +400,7 @@ public:
String getDevelopmentTeamIDString() const { return iosDevelopmentTeamIDValue.get(); }
String getAppGroupIdString() const { return iosAppGroupsIDValue.get(); }
String getProjectBundlerIdentifierString() const { return project.getBundleIdentifierString(); }
String getBuildNumber() const
{
const auto buildNumberString = buildNumber.get().toString();
@ -811,12 +811,13 @@ public:
props.add (new ChoicePropertyComponent (iosAppGroupsValue, "App Groups Capability"),
"Enable this to grant your app the capability to share resources between apps using the same app group ID.");
props.add (new ChoicePropertyComponent (iCloudPermissionsValue, "iCloud Permissions"),
"Enable this to grant your app the capability to use native file load/save browser windows on iOS.");
}
props.add (new ChoicePropertyComponent (iCloudPermissionsValue, "iCloud Permissions"),
iOS ? "Enable this to grant your app the capability to use native file load/save browser windows on iOS." :
"Enable this to grant your app the capability to use iCloud Document Storage");
props.add (new ChoicePropertyComponent (networkingMulticastValue, "Networking Multicast Capability"),
"Your app must have this entitlement to send or receive IP multicast or broadcast. "
"You will also need permission from Apple to use this entitlement.");
@ -1574,7 +1575,7 @@ public:
capabilities["Sandbox"] = shouldUseAppSandbox();
capabilities["HardenedRuntime"] = shouldUseHardenedRuntime();
if (owner.iOS && owner.isiCloudPermissionsEnabled())
if (owner.isiCloudPermissionsEnabled())
capabilities["com.apple.iCloud"] = true;
StringArray capabilitiesStrings;
@ -3535,6 +3536,7 @@ private:
options.isAppSandboxInhertianceEnabled = isAppSandboxInhertianceEnabled();
options.isNetworkingMulticastEnabled = isNetworkingMulticastEnabled();
options.appGroupIdString = getAppGroupIdString();
options.projectBundlerIdentifierString = getProjectBundlerIdentifierString();
options.hardenedRuntimeOptions = getHardenedRuntimeOptions();
options.appSandboxOptions = getAppSandboxOptions();
options.appSandboxTemporaryPaths = getAppSandboxTemporaryPaths();