Contents

product(name:package:condition:)

Creates a target dependency on a product from a package dependency.

Declaration

static func product(name: String, package: String, condition: TargetDependencyCondition? = nil) -> Target.Dependency

Parameters

  • name:

    The name of the product.

  • package:

    The name of the package.

  • condition:

    A condition that limits the application of the target dependency. For example, only apply a dependency for a specific platform.

Return Value

A Target.Dependency instance.

See Also

Creating a Target Dependency