XCConfigurationList
public final class XCConfigurationList : PBXObject
This is the element for listing build configurations.
-
Element build configurations.
Declaration
Swift
@available(*, deprecated, message: "Use buildConfigurationReferences instead") public var buildConfigurationReferences: [PBXObjectReference]
-
Build configurations
Declaration
Swift
public var buildConfigurations: [XCBuildConfiguration] { get set }
-
Element default configuration is visible.
Declaration
Swift
public var defaultConfigurationIsVisible: Bool
-
Element default configuration name
Declaration
Swift
public var defaultConfigurationName: String?
-
Initializes the element with its properties.
Declaration
Swift
@available(*, deprecated, message: "Use constructor that takes objects instead of references") public init(buildConfigurationReferences: [PBXObjectReference] = [], defaultConfigurationName: String? = nil, defaultConfigurationIsVisible: Bool = false)
Parameters
buildConfigurationReferences
element build configurations.
defaultConfigurationName
element default configuration name.
defaultConfigurationIsVisible
default configuration is visible.
-
Initializes the element with its properties.
Declaration
Swift
public convenience init(buildConfigurations: [XCBuildConfiguration] = [], defaultConfigurationName: String? = nil, defaultConfigurationIsVisible: Bool = false)
Parameters
bbuildConfigurations
build configurations.
defaultConfigurationName
element default configuration name.
defaultConfigurationIsVisible
default configuration is visible.
-
Declaration
Swift
public required init(from decoder: Decoder) throws
-
Returns the build configuration with the given name (if it exists)
Declaration
Swift
public func configuration(name: String) throws -> XCBuildConfiguration?
Parameters
name
configuration name.
Return Value
build configuration if it exists.
-
Adds the default configurations, debug and release
Declaration
Swift
public func addDefaultConfigurations() throws -> [XCBuildConfiguration]
Return Value
the created configurations.
-
Adds a build configuration with the given name. If a configuration with the given name exists, it returns that one.
Declaration
Swift
@available(*, deprecated, message: "Create an instace of XCBuildConfiguration and add it to the buildConfigurations ") public func add(configuration: String, baseConfigurationReference: PBXObjectReference? = nil, buildSettings: BuildSettings = [:]) throws -> XCBuildConfiguration
Parameters
configuration
build configuration name.
baseConfigurationReference
reference to the base configuration.
buildSettings
dictionary that contains the build settings for this configuration.
Return Value
build configuration.
-
Returns the object with the given configuration list (project or target)
Declaration
Swift
public func objectWithConfigurationList() throws -> PBXObject?
Parameters
reference
configuration list reference.
Return Value
target or project with the given configuration list.