XCWorkspace
public final class XCWorkspace : Writable, Equatable
Model that represents a Xcode workspace.
-
Workspace data
Declaration
Swift
public var data: XCWorkspaceData
-
Initializes the workspace with the path where the workspace is. The initializer will try to find an .xcworkspacedata inside the workspace. If the .xcworkspacedata cannot be found, the init will fail.
Throws
throws an error if the workspace cannot be initialized.Declaration
Swift
public convenience init(path: AbsolutePath) throws
Parameters
path
.xcworkspace path.
-
Initializes a default workspace with a single reference that points to self:
Declaration
Swift
public convenience init()
-
Initializes the workspace with the path string.
Throws
throws an error if the initialization fails.Declaration
Swift
public convenience init(pathString: String) throws
Parameters
pathString
path string.
-
Initializes the workspace with its properties.
Declaration
Swift
public init(data: XCWorkspaceData)
Parameters
data
workspace data.
-
Declaration
Swift
public func write(path: AbsolutePath, override: Bool = true) throws