XCConfigurationList

public final class XCConfigurationList : PBXObject

This is the element for listing build configurations.

  • 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.