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

Scheme name as a build time environment variable #897

Open
russellwheatley opened this issue Jan 17, 2023 · 0 comments
Open

Scheme name as a build time environment variable #897

russellwheatley opened this issue Jan 17, 2023 · 0 comments

Comments

@russellwheatley
Copy link

Is there any way to configure the Xcode project to set the name of the scheme as a build time environment variable? Or some way to pull a value from some configuration file associated with the scheme?

I need to configure the project so the scheme name is retrievable from a build phase script. I don't have the luxury of using the Xcode interface as I am writing a CLI command that configures the user's project.

I've already looked at Xcode build settings environment variables:
https://developer.apple.com/documentation/xcode/build-settings-reference

There doesn't appear to be any specific scheme configuration file to get the name.

I thought the EnvironmentVariables solved this problem but it appears it is for the run-time, not for build settings.

Any suggestions would be greatly appreciated! Thanks.

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

No branches or pull requests

1 participant