Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 26 Metal compiler error MetalToolChain

Tags:

xcode

metal

Just downloaded Xcode 26 and I see build fails despite Metal toolchain 26.0 downloaded. What am I missing?

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

like image 399
Deepak Sharma Avatar asked May 08 '26 05:05

Deepak Sharma


1 Answers

It's a known issue of Xcode 26, which is listed on the release note:
Metal/Known Issues workaround is download the toolchain, change the version and then register manually:

xcodebuild -downloadComponent metalToolchain -exportPath /tmp/MyMetalExport/
sed -i '' -e 's/17A5241c/17A5241e/g' /tmp/MyMetalExport/MetalToolchain-17A5241c.exportedBundle/ExportMetadata.plist
xcodebuild -importComponent metalToolchain -importPath /tmp/MyMetalExport/MetalToolchain-17A5241c.exportedBundle
like image 65
PuerGozi Avatar answered May 10 '26 00:05

PuerGozi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!