-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macos-14 runner: intermittent "invalid developer directory" when installing Xcode 16.0 #3543
Comments
We sometimes experience the same issue indeed. In most cases the issue doesn't occur, but sometimes we get |
Same thing just started happening on our repo 😢 |
Also getting this error today:
No changes in our code or build config that would have caused it. |
We're seeing this recently and regularly in our CI pipelines, as well. |
For me it looks like the job checks out different versions of the runner software when The same workflow run uses these versions randomly: 20241108.442 (which does not include xcode 16) |
Can confirm. We see the same error and this seems to be the common factor for the failing runs. |
For what it's worth according to GitHub it seems to be expected behavior, and Xcode 16 is no longer supported on actions/runner-images#10918 (comment) The main annoyances I've observed:
|
@stephencelis Thanks for sharing the comment about the policy change. That explains a lot. The old runner image policy was the main reason we used |
TLDR, is there a work-around for this? Our pipelines are stuck failing and macos-15 is still in preview |
We were able to switch to macos-15 today. I don't like doing this untested, but it's what got us around part of the issue. The primary issue was the lack of communication on this to the folks who pay for build time. We could have saved probably hours of not-cheap billed time if we'd know about the PR linked above. |
According to actions/runner-images#10929 (comment), Xcode 16 is being added back to the |
Thank you. I am trying to edit pipeline making macos agent, Xcode as variables. If I choose macos-15 it fails with |
I think you just need to wait for the rollout to complete. In the comment they mention that it may take 3-4 days. You can check the "Rollout Status" at https://github.com/actions/runner-images to see when it is complete. |
@turbo25mike No work around for now. We may try downloading Android build tools but it is too much of a temporary effort just to pass builds. I have marked PR pipeline as non-mandatory for merge. And for release I am going to build manually. Hope it gets fixed once they complete rollout. |
This issue seems to have gone away as of today. Thinking they re-added Xcode 16 to the macOS-14 image and have not updated the runner-images GitHub page yet. |
Describe the bug
Our first step is to setup Xcode in our builds. Today we've been getting a large number of immediate failures, in the Xcode setup step; error message is
xcode-select: error: invalid developer directory '/Applications/Xcode_16.0.app'
. This normally indicates the directory is not a signed app or package folder from Apple, or it's just outright missing.To Reproduce
Steps to reproduce the behavior:
Currently, the there is no reliable reproduction, but try installing 16.0 on a macos-14 runner a few times and you should see the error occasionally (we see it 1 in 6 right now).
Expected behavior
Since Xcode 16.0 is not the latest version, but compatible with macos-14, I would expect it to install without issue.
Runner Version and Platform
macos-14
OS of the machine running the runner? macos
What's not working?
We inject the version via secret, hence the ***, but here's the output:
Job Log Output
N/A, the job doesn't get past this first step.
Runner and Worker's Diagnostic Logs
Don't have access to a _diag folder that I can find in the log capture ZIP.
The text was updated successfully, but these errors were encountered: