mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
Add defaultConfigurationName to options
This allows users to set the defaultConfigurationName project wide. This setting corresponds to the drop down in the project settings that says "Use CONFIG for command line builds". This affects which configuration Xcode looks in for some settings, even if you pass `-configuration FOO`.
This commit is contained in:
@@ -70,11 +70,12 @@ public class PBXProjGenerator {
|
||||
)
|
||||
}
|
||||
|
||||
let configName = spec.options.defaultConfigurationName ?? buildConfigs.first?.object.name ?? ""
|
||||
let buildConfigList = createObject(
|
||||
id: spec.name,
|
||||
XCConfigurationList(
|
||||
buildConfigurations: buildConfigs.map { $0.reference },
|
||||
defaultConfigurationName: buildConfigs.first?.object.name ?? ""
|
||||
defaultConfigurationName: configName
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user