Under Xcode 26 beta 3 I'm trying to build a project which uses Metal. I've installed the Metal Toolchain 26.0 under Settings -> Components, but when I start a build it fails during the "Prepare build" step with the following error (repeated many times):
stat(/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v17.1.5276.7.Pb9SLL/Metal.xctoolchain/usr/bin/clang): No such file or directory (2)
I've confirmed that there is in fact no 'clang' binary in that directory. I've tried using xcode-select
to set the Xcode 26 Beta app as the active developer directory, and xcodebuild -version
shows:
Xcode 26.0
Build version 17A5276g
Any ideas on other things to try?
I believe I've tracked this down.
Some of our internal build configuration within the project was using the Xcode variable TOOLCHAIN_DIR
to reference the clang compiler. Apparently TOOLCHAIN_DIR
is now pointed at the Metal toolchain directory, and we need to be using DT_TOOLCHAIN_DIR
(which points at the default Xcode toolchain directory) instead.