I just saw this with the same code in two different workflows. One workflow succeeded, one failed. The only difference between the two was one was targeted at a TestFlight internal user base, and one for external users. The external one fails on multiple executions.
I've done a bit more digging, and have done the following:
Added a ci_pre_xcodebuild.sh script, the entirety of which is included below:
```
#!/bin/sh
xcodebuild -downloadComponent metalToolchain
```
Changed my Xcode Cloud workflow to use the latest macOS, but specifically the last version of Xcode.
Software
Version
Xcode
Xcode 26.0.1 (17A400)
macOS
macOS Tahoe 26.1 (25B78)
Same code, same commit, but now everything is working.
Topic:
Developer Tools & Services
SubTopic:
Xcode Cloud
Tags: