Instance Propertyswift-package-manager 6.1.2Workspace
targetName
The name of the binary target the artifact corresponds to.
let targetName: StringThe name of the binary target the artifact corresponds to.
let targetName: Stringimport Workspacestruct ManagedArtifactA downloaded artifact managed by the workspace.
class WorkspaceA workspace represents the state of a working project directory.
@frozen struct StringA Unicode string value that is a collection of characters.
init(packageRef: PackageReference, targetName: String, source: Workspace.ManagedArtifact.Source, path: AbsolutePath, kind: BinaryModule.Kind) static func local(packageRef: PackageReference, targetName: String, path: AbsolutePath, kind: BinaryModule.Kind, checksum: String? = nil) -> Workspace.ManagedArtifact Create an artifact present locally on the filesystem.
static func remote(packageRef: PackageReference, targetName: String, url: String, checksum: String, path: AbsolutePath, kind: BinaryModule.Kind) -> Workspace.ManagedArtifact Create an artifact downloaded from a remote url.
var description: String { get }let kind: BinaryModule.Kindlet packageRef: PackageReferenceThe package reference.
let path: AbsolutePathThe path of the artifact on disk
let source: Workspace.ManagedArtifact.SourceThe source of the artifact (local or remote).
enum SourceRepresents the source of the artifact.