Static Methodswift-package-manager 5.10.1PackageDescription
executable(name:targets:)
Creates an executable package product.
Product.swift:152static func executable(name: String, targets: [String]) -> Product
Parameters
Returns
A Product
instance.
See also
class Executable
The executable product of a Swift package.
Other members in extension
Types
class Library
The library product of a Swift package.
class Plugin
The plug-in product of a Swift package.
Type members
static func library(name: String, type: Library.LibraryType?, targets: [String]
) -> Product Creates a library product to allow clients that declare a dependency on this package to use the package’s functionality.
static func plugin(name: String, targets: [String]
) -> Product Defines a product that vends a package plugin target for use by clients of the package.
Instance members
let name: String
The name of the package product.