Xcode 26 CompileMetalFile failed

"EnableLiveAssetServerV2-com.apple.MobileAsset.MetalToolchain" = on;

ProductName: macOS ProductVersion: 26.0.1 BuildVersion: 25A362

The MetalToolchain is installed, however I keep getting error that MetalToolchain cannot be found by the Xcode

"Command CompileMetalFile failed with a nonzero exit code" error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain

❯ xcodebuild -downloadComponent MetalToolchain 2025-10-31 11:18:29.004 xcodebuild[6605:45524] IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.k9JmEp” couldn’t be opened because you don’t have permission to view it. Beginning asset download... 2025-10-31 11:18:29.212 xcodebuild[6605:45523] IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.k9JmEp” couldn’t be opened because you don’t have permission to view it. Downloaded asset to: /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/4ab058bc1c53034b8c0a9baca6fba2d2b78bb965.asset/AssetData/Restore/022-17211-415.dmg Done downloading: Metal Toolchain 17A324.

Hey @krzyzanowskim , the last message of the log seems to confirm that the 17A324 metal toolchain got downloaded.

Could you also share the results from?

xcodebuild -showComponent metalToolchain ; xcrun -f metal ; xcrun metal --version

Sure:

❯ xcodebuild -showComponent metalToolchain ; xcrun -f metal ; xcrun metal --version
2025-10-31 19:42:19.179 xcodebuild[11856:231862]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.Qp6DBA” couldn’t be opened because you don’t have permission to view it.
2025-10-31 19:42:19.414 xcodebuild[11856:231864]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.Qp6DBA” couldn’t be opened because you don’t have permission to view it.
2025-10-31 19:42:19.417 xcodebuild[11856:231860]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.1.324.0.Qp6DBA” couldn’t be opened because you don’t have permission to view it.
Asset Path: /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/4ab058bc1c53034b8c0a9baca6fba2d2b78bb965.asset/AssetData
Build Version: 17A324
Status: installed
Toolchain Search Path: /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.1.324.0.Qp6DBA
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/metal
error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain

What happens when you try running the following command in the terminal:

xcodebuild -downloadComponent metalToolchain

I also have the same problem on a MacStudio M1Max (and not on a MBP M1Max) after upgrading to Xcode 26.1.1: no MetalToolchain accessible from this application. Running on Tahoe 26.1

Running today xcodebuild -downloadComponent metalToolchain gives:

`Beginning asset download...
Downloaded asset to: /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/68d8db6212b48d387d071ff7b905df796658e713.asset/AssetData/Restore/022-20369-066.dmg
Done downloading: Metal Toolchain 17B54.`

Then when I run "xcrun metal --version", I got an error message:

error: error: cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain

Last when I run: "xcodebuild -showComponent metalToolchain", I got:

2025-12-12 18:34:14.045 xcodebuild[27394:1591467]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.2.54.0.BttmuJ” couldn’t be opened because you don’t have permission to view it.
2025-12-12 18:34:14.339 xcodebuild[27394:1591469]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.2.54.0.BttmuJ” couldn’t be opened because you don’t have permission to view it.
2025-12-12 18:34:14.341 xcodebuild[27394:1591468]  IDEDownloadableMetalToolchainCoordinator: Failed to remount the Metal Toolchain: The file “com.apple.MobileAsset.MetalToolchain-v17.2.54.0.BttmuJ” couldn’t be opened because you don’t have permission to view it.
Asset Path: /System/Library/AssetsV2/com_apple_MobileAsset_MetalToolchain/68d8db6212b48d387d071ff7b905df796658e713.asset/AssetData
Build Version: 17B54
Status: installed
Toolchain Search Path: /private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.2.54.0.BttmuJ

Do we have any update around this? I'm having the exact same issue, it appears to be a permissions issue. The problem is still happening in Xcode 26.2. I was able to fix this issue by manually move the Metal.xctoolchain to the xcode toolchain folder. But it's not a proper fix. Can you guys help us?

no we don't. I re-installed macOS 26 with Xcode 26.2 and the problem persists

Encountered the same problem here. Looks like we require elevated rights to mount the toolchain, and maybe Xcode's helper doesn't have the privileges?

I resorted to writing a Launch Service to auto-mount the toolchain for me.

https://christiantietze.de/posts/2026/01/auto-mount-metal-toolchain-using-launchd-because-xcode-wont/

Xcode 26 CompileMetalFile failed
 
 
Q