target(name:condition:)

    Creates a dependency on a target in the same package.

    Target.swift:1299
    SwiftPM
    5.3+
    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.

    Returns

    A Target.Dependency instance.

    See also

    Other members in extension

    Type members

    Show obsolete interfaces (1)

    Hide obsolete interfaces