Class

Product.Library

The library product of a Swift package.

Declaration

final class Product.Library : Product

Topics

Describing a Library Product

let targets: [String]

The names of the targets in this product.

enum Product.Library.LibraryType

The different types of a library product.

Encoding and Decoding

func encode(to: Encoder)

Encodes this library product type into the given encoder.

Relationships

Inherits From

See Also

Creating a Library Product

static func library(name: String, type: Product.Library.LibraryType?, targets: [String]) -> Product

Create a library product to allow clients that declare a dependency on this package to use the package’s functionality.