From c5619310503e9c37621602ae3bfe6ff63d66c551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Lamboley?= Date: Fri, 12 Jan 2024 15:37:24 +0100 Subject: [PATCH] Add a new path in sandbox for Xcode When building a project which has SPM dependencies in Xcode, SPM will try and access (and potentially write in) `/Users/frizlab/Library/Caches/org.swift.swiftpm`. I have added this path in the write exception for Xcode. --- Library/Homebrew/sandbox.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/Homebrew/sandbox.rb b/Library/Homebrew/sandbox.rb index 5b187e7bf6..4aa6126590 100644 --- a/Library/Homebrew/sandbox.rb +++ b/Library/Homebrew/sandbox.rb @@ -74,6 +74,7 @@ class Sandbox # Xcode projects expect access to certain cache/archive dirs. def allow_write_xcode allow_write_path "#{Dir.home(ENV.fetch("USER"))}/Library/Developer" + allow_write_path "#{Dir.home(ENV.fetch("USER"))}/Library/Caches/org.swift.swiftpm" end def allow_write_log(formula)