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
Xcode 26 CompileMetalFile failed
 
 
Q