Random `Action failed: Select Xcode Version` error

Hello, so we’ve got CI set up for quite a while now and it was doing a really great job so far. Unfortunately we start getting some weird errors yesterday. It is during:
Select Xcode Version

There was no recent changes in .yml file. Also we do not specify Xcode version anywhere.

All we got is:

sudo xcode-select --switch /Applications/Xcode-7.0.app && xcodebuild -version
xcode-select: error: invalid developer directory '/Applications/Xcode-7.0.app'

sudo xcode-select --switch /Applications/Xcode-7.0.app && xcodebuild -version returned exit code 1

Action failed: Select Xcode Version

We usually try to rebuild and after few tries all of the sudden it works.
Can we get some more details about what is going on?

Best Regards,
Slawomir

1 Like

Seconded. Having this problem here too
https://circleci.com/gh/ActionFPS/ActionFPS-Game/238

We are very sorry about this. This happened due to a corrupted image on one of the hosts in production. We have identified the faulty host and will have it fixed shortly. Thank you for your patience.

We have removed the faulty host from the production environment, the builds should not be hitting this issue anymore. Please let us know if you still see this error. Thanks!

1 Like

I am also facing the same issue for my build. And multiple rebuild also ends up with this.

sudo xcode-select --switch /Applications/Xcode-8.3.2.app && xcodebuild -version
xcode-select: error: invalid developer directory '/Applications/Xcode-8.3.2.app'

sudo xcode-select --switch /Applications/Xcode-8.3.2.app && xcodebuild -version returned exit code 1

Action failed: Select Xcode Version