byName(name:)

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

    Target.swift:1272

    This declaration was obsoleted in SwiftPM 5.3.

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

    Parameters

    name

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

    Returns

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

    See also

    Other members in extension

    Type members

    Show obsolete interfaces (1)

    Hide obsolete interfaces