From 805f5801fac664f765c25cb6bc826d2f5b769327 Mon Sep 17 00:00:00 2001 From: Robert Connell Date: Sat, 26 Jul 2025 09:34:47 -0400 Subject: [PATCH] =?UTF-8?q?Cannot=20use=20Metal=20properly=20with=20Swift?= =?UTF-8?q?=20Packages=20=E2=80=94=20even=20with=20Apple-recommended=20plu?= =?UTF-8?q?gin=20workaround?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/Basics/Sandbox.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/Basics/Sandbox.swift b/Sources/Basics/Sandbox.swift index 01c021f664f..f24636cac13 100644 --- a/Sources/Basics/Sandbox.swift +++ b/Sources/Basics/Sandbox.swift @@ -133,6 +133,9 @@ fileprivate func macOSSandboxProfile( // This is needed to use the UniformTypeIdentifiers API. contents += "(allow mach-lookup (global-name \"com.apple.lsd.mapdb\"))\n" + // For downloadable Metal toolchain lookups. + contents += "(allow mach-lookup (global-name \"com.apple.mobileassetd.v2\"))\n" + if allowNetworkConnections.filter({ $0 != .none }).isEmpty == false { // this is used by the system for caching purposes and will lead to log spew if not allowed contents += "(allow file-write* (regex \"/Users/*/Library/Caches/*/Cache.db*\"))"