-
Notifications
You must be signed in to change notification settings - Fork 3
automatic_values
Samantha Marshall edited this page Aug 8, 2016
·
4 revisions
Often times you will want to be able to enforce the value of a setting that is defined by Xcode's build settings panel as "Automatic". This can be achieved by declaring the build setting but not giving it a value assignment. To achieve this in the pyconfig DSL you declare the setting as such:
setting PROVISIONING_PROFILE {
for Debug
for Release {
"App Store Distribution Profile"
}
}
This will create the following .xcconfig
PROVISIONING_PROFILE_Debug =
PROVISIONING_PROFILE_Release = "App Store Distribution Profile"
PROVISIONING_PROFILE = $(PROVISIONING_PROFILE_$(CONFIGURATION))
You can also do the same with direct assignment:
setting PROVISIONING_PROFILE {
for *
}
To get an .xcconfig
file that looks like:
PROVISIONING_PROFILE =