Contents

byName(name:)

Creates a dependency that resolves to either a target or a product with the specified name.

Declaration

static func byName(name: String) -> Target.Dependency

Parameters

  • name:

    The name of the dependency, either a target or a product.

Return Value

A Target.Dependency instance. The Swift Package Manager creates the by-name dependency after it has loaded the package graph.

See Also

Creating a Target Dependency