sweetpad icon indicating copy to clipboard operation
sweetpad copied to clipboard

Manually select configuration

Open JulianMelzig opened this issue 1 year ago • 2 comments

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.

JulianMelzig avatar Nov 16 '24 15:11 JulianMelzig

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.

kvaster avatar Nov 17 '24 12:11 kvaster

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

hyzyla avatar Nov 17 '24 18:11 hyzyla