Required Instance Propertyswift-package-manager 6.0.1PackagePlugin
targets
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).
var targets: [Target] { get }