Browse Source

AU: Add resourceUsage plist entry to non-sandbox safe plug-ins so that they still load in GarageBand

tags/2021-05-28
hogliux 7 years ago
parent
commit
9ab9b28f46
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h

+ 10
- 0
extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h View File

@@ -1566,7 +1566,17 @@ public:
addPlistDictionaryKeyInt (dict, "version", owner.project.getVersionAsHexInteger());
if (owner.project.isAUSandBoxSafe())
{
addPlistDictionaryKeyBool (dict, "sandboxSafe", true);
}
else
{
dict->createNewChildElement ("key")->addTextElement ("resourceUsage");
auto* resourceUsageDict = dict->createNewChildElement ("dict");
addPlistDictionaryKeyBool (resourceUsageDict, "network.client", true);
addPlistDictionaryKeyBool (resourceUsageDict, "temporary-exception.files.all.read-write", true);
}
xcodeExtraPListEntries.add (plistKey);
xcodeExtraPListEntries.add (plistEntry);


Loading…
Cancel
Save