Skip to content
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

Export DEVELOPER_DIR instead of invoking xcode-select to set the active Xcode version #62

Open
bobergj opened this issue Jan 5, 2023 · 0 comments · May be fixed by #63
Open

Export DEVELOPER_DIR instead of invoking xcode-select to set the active Xcode version #62

bobergj opened this issue Jan 5, 2023 · 0 comments · May be fixed by #63

Comments

@bobergj
Copy link

bobergj commented Jan 5, 2023

Export the DEVELOPER_DIR environment variable instead of invoking xcode-select to set the active Xcode version.

Setting the active Xcode version with sudo xcode-select changes the setting system wide.
Github actions can also be run with a self-hosted runner: https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners. When using a self-hosted github runner, the run isn't necessarily containerized. Changing the system-wide Xcode version then creates conflicts between concurrent runs.

From man xcode-select:

ENVIRONMENT
DEVELOPER_DIR
Overrides the active developer directory. When DEVELOPER_DIR is set, its value will be used instead of the system-wide active developer directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant