Contents

target(name:condition:)

Creates a dependency on a target in the same package.

Declaration

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

Parameters

  • name:

    The name of the target.

  • 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