Required Instance Propertyswift-package-manager 6.0.1PackagePlugin
id
Unique identifier for the product.
var id: ID { get }
Unique identifier for the product.
var id: ID { get }
import PackagePlugin
protocol Product
Represents a single product defined in a package.
typealias ID = String
var name: String { get }
The name of the product, as defined in the package manifest. This name is unique among the products of the package in which it is defined.
var targets: [Target] { get }
The targets that directly comprise the product, in the order in which they are declared in the package manifest. The product will contain the transitive closure of the these targets and their dependencies. Some kinds of products have further restrictions on the set of targets (for example, an executable product must have one and only one target that defines the main entry point for an executable).