From 26a20db383e27e123a8d2e5abbc1e44ba72f9591 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Tue, 21 Jun 2022 07:07:42 -0700 Subject: [PATCH] [Sandbox] Update Info.plist generator Plist generator now emits the output to the temporary folder, which we have write permission to. Signed-off-by: Christopher Snowhill --- Audio/PluginController.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Audio/PluginController.mm b/Audio/PluginController.mm index 26142141d..f5178379e 100644 --- a/Audio/PluginController.mm +++ b/Audio/PluginController.mm @@ -515,7 +515,7 @@ static PluginController *sharedPluginController = nil; [stringList addObject:plistFooter]; - NSFileHandle *fileHandle = [NSFileHandle fileHandleForWritingAtPath:@"/tmp/Cog_Info.plist" createFile:YES]; + NSFileHandle *fileHandle = [NSFileHandle fileHandleForWritingAtPath:[NSTemporaryDirectory() stringByAppendingPathComponent:@"Cog_Info.plist"] createFile:YES]; if (!fileHandle) { DLog(@"Error saving Info.plist!"); return;