Add xcodebuild -runFirstLaunch fallback for Metal toolchain installation documentation (#51631)

When setting up on macOS 26, `xcodebuild -downloadComponent
MetalToolchain` can fail if Xcode hasn't been initialized yet. Running
`xcodebuild -runFirstLaunch` first resolves this.

Release Notes:

- N/A
This commit is contained in:
Joey Carpinelli 2026-03-17 05:41:59 -04:00 committed by GitHub
parent 5d7e10e2e8
commit dbe3cc7ca2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -118,7 +118,8 @@ xcrun: error: unable to find utility "metal", not a developer tool or in PATH
Try `sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer`
If you're on macOS 26, try `xcodebuild -downloadComponent MetalToolchain`
If you're on macOS 26, try `xcodebuild -downloadComponent MetalToolchain`.
If that command fails, run `xcodebuild -runFirstLaunch` and try downloading the toolchain again.
### Cargo errors claiming that a dependency is using unstable features