Title: Xcode 27 beta 27A5194q: aimodelc reports “Core AI requires the Metal Toolchain” although Metal Toolchain is installed
Description:
I am trying to compile a Core AI asset using Xcode 27 beta on macOS 27. CoreAI.framework is available and the Metal Toolchain component is installed, but aimodelc refuses to compile with:
error: Core AI requires the Metal Toolchain. note: Download it from Xcode > Settings > Components > Other Components.
Environment:
- macOS 27 beta
- Xcode 27.0 beta
- Xcode build: 27A5194q
- Metal Toolchain installed build: 27A5194o
- Apple Silicon Mac
Diagnostics:
xcodebuild -version reports:
Xcode 27.0 Build version 27A5194q
xcodebuild -showComponent MetalToolchain -json reports:
{ "buildVersion": "27A5194o", "status": "installed", "toolchainIdentifier": "com.apple.dt.toolchain.Metal.32023.917", "toolchainSearchPath": "/private/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.1.5194.15.4aqDVJ" }
The actual tools resolve:
xcrun --find aimodelc
/Applications/Xcode-beta.app/Contents/Developer/usr/bin/aimodelc
xcrun --find coreai-build
/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.1.5194.15.4aqDVJ/Metal.xctoolchain/usr/bin/coreai-build
xcrun --find metallib
/var/run/com.apple.security.cryptexd/mnt/com.apple.MobileAsset.MetalToolchain-v27.1.5194.15.4aqDVJ/Metal.xctoolchain/usr/bin/metallib
Reproduction:
- Install Xcode 27 beta build 27A5194q.
- Install Metal Toolchain from Xcode > Settings > Components > Other Components.
- Confirm
xcodebuild -showComponent MetalToolchain -jsonreports Metal Toolchain installed. - Attempt to compile a Core ML package to Core AI:
xcrun aimodelc compile
--output /private/tmp/vesta-coreai-smoke/ManualPatchCheck.coreai
/private/tmp/vesta-coreai-smoke/AFM27CoreAISmoke.mlpackage
Actual result:
aimodelc fails immediately:
error: Core AI requires the Metal Toolchain. note: Download it from Xcode > Settings > Components > Other Components.
Expected result:
aimodelc should recognize the installed Metal Toolchain and compile the Core AI asset, or Xcode should provide a Metal Toolchain component compatible with Xcode build 27A5194q.
Additional details: Running:
xcodebuild -downloadComponent MetalToolchain
downloads and installs Metal Toolchain 27A5194o.
Running:
xcodebuild -downloadComponent MetalToolchain -buildVersion 27A5194q
fails with:
xcodebuild: error: Failed fetching catalog for assetType (com.apple.MobileAsset.MetalToolchain), serverParameters ({ RequestedBuild = 27A5194q; })
This suggests Apple’s component catalog currently provides Metal Toolchain 27A5194o while Xcode is build 27A5194q, and aimodelc does not accept this installed component as compatible.
Please confirm whether Metal Toolchain 27A5194o is intended to work with Xcode 27A5194q. If not, please publish the matching Metal Toolchain component or adjust aimodelc/component compatibility detection.