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

Manually select configuration #75

Open
JulianMelzig opened this issue Nov 16, 2024 · 2 comments
Open

Manually select configuration #75

JulianMelzig opened this issue Nov 16, 2024 · 2 comments

Comments

@JulianMelzig
Copy link

At the moment I don't see an option to set a specific configuration for the build process. Adding it as an option as described in the documentation with the sweetpad.build.args just throws an error because of a duplicate (-configuration) build arg.

Looking at the implementation, it always selects Debug as the configuration if it is found in the workspace and only shows a select option, if there is no Debug configuration available.

Would it be possible to somehow let the user define itself what configuration to use ? E.g. we use a different configuration for each scheme in Xcode.

Thanks.

@kvaster
Copy link
Contributor

kvaster commented Nov 17, 2024

Setting specific configuration is a 'must have' feature. I have no 'Debug' config in a project I am working on, but somehow it appears inside pbxproject and sweetpad chooses it. This leads to lot's of errors.

@hyzyla
Copy link
Collaborator

hyzyla commented Nov 17, 2024

Hi! Check out the latest v0.1.42 update. I've just added the sweetpad.build.configuration settings, as well as the "SweetPad: Select Build Configuration" command. Example of .vscode/settings.json:

{
  "sweetpad.build.configuration": "CustomConfiguration"
}

E.g. we use a different configuration for each scheme in Xcode.

This change probably won't solve the problem entirely, but I think it’s a good starting point

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

3 participants