Xcode "xcrun: error: invalid active developer path" in CI
By Daniel Zoghalchali·Latchkey
xcrun could not find the active developer directory. Either the Command Line Tools are not installed, or xcode-select points at an Xcode that is not present on this runner image.
What this error means
A tool invocation through xcrun (e.g. xcrun simctl, xcrun altool) fails with "invalid active developer path" or "unable to find utility". It happens on images where the selected Xcode path does not exist.
If no full Xcode is needed, install the CLT and reset the path.
Terminal
xcode-select --install
sudo xcode-select --reset
How to prevent it
Pin the Xcode version your image ships and select it explicitly in CI.
Run xcode-select -p early to assert the path is valid.
Avoid hardcoding an Xcode app path that a newer image may not have.
Frequently asked questions
What causes ""xcrun: error""?
The runner image upgraded Xcode, but the selected developer path still references the old Xcode_15.0.app, which is no longer installed.
How do I fix "xcrun: error"?
List the installed Xcodes and point xcode-select at one of them.
Can Latchkey fix this automatically?
Yes. Latchkey runs your GitHub Actions on managed runners that detect this failure, apply the fix, and retry the job automatically - self-healing is on by default.