I am still having this issue on Beta 3, after trying the methods mentioned above. It says:
cannot execute tool 'metal' due to missing Metal Toolchain; use: xcodebuild -downloadComponent MetalToolchain
Note: the metal command line code is run in my custom Swift Package plugin like this:
let xcRunURL = URL(fileURLWithPath: "/usr/bin/xcrun")
let p = Process()
p.executableURL = xcRunURL
p.arguments = [
"metal",
"-c",
"-fcikernel",
input,
"-o",
airOutput,
"-fmodules=none"
]
Topic:
Graphics & Games
SubTopic:
Metal
Tags: