Required Instance Propertyswift-package-manager 6.0.1PackagePlugin
id
Unique identifier for the target.
var id: ID { get }
Unique identifier for the target.
var id: ID { get }
import PackagePlugin
protocol Target
Represents a single target defined in a package.
typealias ID = String
var dependencies: [TargetDependency] { get }
Any other targets on which this target depends, in the same order as they are specified in the package manifest. Conditional dependencies that do not apply have already been filtered out.
var directory: Path { get }
The absolute path of the target directory in the local file system.
var name: String { get }
The name of the target, as defined in the package manifest. This name is unique among the targets of the package in which it is defined.