Plugin
The plug-in product of a Swift package.
final class Plugin
Describing a plug-in product
let targets: [String]
The name of the plug-in target to vend as a product.
The plug-in product of a Swift package.
final class Plugin
let targets: [String]
The name of the plug-in target to vend as a product.
import PackageDescription
Create reusable code, organize it in a lightweight way, and share it across your projects and with other developers.
class Product
The object that defines a package product.
let targets: [String]
The name of the plug-in target to vend as a product.
static func plugin(name: String, targets: [String]) -> Product
Defines a product that vends a package plugin target for use by clients of the package.
static func executable(name: String, targets: [String]) -> Product
Creates an executable package product.
static func library(name: String, type: Library.LibraryType? = nil, targets: [String]) -> Product
Creates a library product to allow clients that declare a dependency on this package to use the package’s functionality.
let name: String
The name of the package product.
final class Executable
The executable product of a Swift package.
final class Library
The library product of a Swift package.
protocol Sendable