Skip to content

Instantly share code, notes, and snippets.

@BlueFalconHD
Created June 14, 2025 03:30
Show Gist options
  • Save BlueFalconHD/0284a1806546536ca35db70dc20502c7 to your computer and use it in GitHub Desktop.
Save BlueFalconHD/0284a1806546536ca35db70dc20502c7 to your computer and use it in GitHub Desktop.
If you are having issues getting Metal to work on macOS 26.0 developer beta, here are some things to do
#!/usr/bin/env bash
sudo rm /Library/Developer/Xcode.app # remove old symlink
sudo ln -s /Applications/Xcode-26.0.0-Beta.app /Library/Developer/Xcode.app # new symlink
sudo xcode-select -s /Applications/Xcode-26.0.0-Beta.app # select
# delete possibly pre-existing
xcodebuild -deleteComponent metalToolchain
# fix described in apple release notes: https://developer.apple.com/documentation/xcode-release-notes/xcode-26-release-notes#Metal
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment