From 9ab9b28f4680886235e32e03568bef24ec5e9024 Mon Sep 17 00:00:00 2001 From: hogliux Date: Wed, 27 Jun 2018 15:53:22 +0100 Subject: [PATCH] AU: Add resourceUsage plist entry to non-sandbox safe plug-ins so that they still load in GarageBand --- .../Source/ProjectSaving/jucer_ProjectExport_Xcode.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h index 4d1976c84a..a9b8645e5a 100644 --- a/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h +++ b/extras/Projucer/Source/ProjectSaving/jucer_ProjectExport_Xcode.h @@ -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);