ExecutableProduct
Represents an executable product defined in a package.
struct ExecutableProduct
Represents an executable product defined in a package.
struct ExecutableProduct
import PackagePlugin
protocol Product
Represents a single product defined in a package.
let id: ID
let mainTarget: Target
The target that contains the main entry point of the executable. Every executable product has exactly one main executable target. This target will always be one of the targets in the product’s targets
array.
let name: String
let targets: [Target]
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. For an ExecutableProduct, exactly one of the targets in this list must be an ExecutableTarget.
var sourceModules: [SourceModuleTarget] { get }