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 15″, macOS 26.0

Posted on Oct 2, 2025 3:02 AM

Reply
4 replies

Xcode_26 not compiling Metal project

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.