XCConfig
public final class XCConfig
.xcconfig configuration file.
-
Configuration file includes.
Declaration
Swift
public var includes: [XCConfigInclude]
-
Build settings
Declaration
Swift
public var buildSettings: BuildSettings
-
Initializes the XCConfig file with its attributes.
Declaration
Swift
public init(includes: [XCConfigInclude], buildSettings: BuildSettings = [:])
Parameters
includes
all the .xcconfig file includes. The order determines how the values get overriden.
dictionary
dictionary that contains the config.
-
Initializes the XCConfig reading the content from the file at the given path and parsing it.
Throws
an error if the config file cannot be found or it has an invalid format.Declaration
Swift
public init(path: AbsolutePath, projectPath: AbsolutePath? = nil) throws
Parameters
path
path where the .xcconfig file is.
projectPath
path where the .xcodeproj is, for resolving project-relative includes.
-
Declaration
Swift
public static func == (lhs: XCConfig, rhs: XCConfig) -> Bool
-
It returns the build settings after flattening all the includes.
Declaration
Swift
public func flattenedBuildSettings() -> [String : Any]
Return Value
build settings flattening all the includes.
-
Declaration
Swift
public func write(path: AbsolutePath, override: Bool) throws