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.
This commit is contained in:
François Lamboley 2024-01-12 15:37:24 +01:00 committed by GitHub
parent a7615b788b
commit c561931050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -74,6 +74,7 @@ class Sandbox
# Xcode projects expect access to certain cache/archive dirs. # Xcode projects expect access to certain cache/archive dirs.
def allow_write_xcode def allow_write_xcode
allow_write_path "#{Dir.home(ENV.fetch("USER"))}/Library/Developer" allow_write_path "#{Dir.home(ENV.fetch("USER"))}/Library/Developer"
allow_write_path "#{Dir.home(ENV.fetch("USER"))}/Library/Caches/org.swift.swiftpm"
end end
def allow_write_log(formula) def allow_write_log(formula)