-
Notifications
You must be signed in to change notification settings - Fork 823
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
Clear default build settings #89
Comments
Interesting. This mirrors the thoughts in #77 |
Ah yes, I think that kind of only half captures the problem though, since even if you're not overriding the setting, you may not want it to be set in the project. This happens for us a lot in our all Swift app, where we don't really want Objective-C build settings to be set, since future developers won't know if we actually need it, or if it was just set by default by Xcode |
What do you suggest as way to opt out of setting presets? There are presets for the project, debug and release configurations, each platform and each target |
I guess maybe a top level attribute for this? In theory it could also be per-target, but that seems like overkill? |
What about this?
You can already clear debug and release settings by simply providing a different type other than
|
Oh interesting, is that all that is used for? |
Yep, that's all that does. It's documented in the Project spec |
Another option is to not apply the base settings if the config type is cleared.
to this:
|
I'm more for the |
The configs aren’t a target level attribute, they live on the top level project. Also those debug and release settings actually get applied to the project, not the target |
Cool! then I'd go with the solution that you proposed. |
There could still be another solution to clear all the presets including those in targets. Maybe an
What do you think? |
@keith, I've added a followup PR #101 that allows you to fully control the setting presets. Setting this to |
Awesome!! |
It would be nice if there were a way to clear the default settings XcodeGen provides. This is useful if you define all your settings in xcconfig files, so when you generate the project, you don't want its default settings to shadow yours. I almost expected it to with this configuration:
But I understand these
base
settings are just additive to the project. In the meantime I might use xcodeproj to wipe these settings out after project generation.The text was updated successfully, but these errors were encountered: