Xcode_26 not compiling Metal project

Hello

Xcode 26.0.1 (17A400) Missing some Metal components

When building a program using Metal, it induces an unexpected error :

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

Which terminates the build

The fix given “xcodebuild -downloadComponent MetalToolchain” using sudo does not work

Did someone find a work around or could resolve the issue?

Many thanks

Jean

MacBook Air M4; macOS 26.0.1; Xcode 26.0.1

Xcode_26 not compiling Metal project
 
 
Q