package(path:)

    Adds a dependency to a package located at the given path.

    PackageDependency.swift:167
    static func package(path: String) -> Package.Dependency

    Parameters

    path

    The file system path to the package.

    Returns

    A package dependency.

    The Swift Package Manager uses the package dependency as-is and does not perform any source control access. Local package dependencies are especially useful during development of a new package or when working on multiple tightly coupled packages.

    See also

    Other members in extension

    Types

    Show obsolete interfaces (1)

    Hide obsolete interfaces

    • enum Requirement

      An enum that represents the requirement for a package dependency.

    Type members

    Show obsolete interfaces (7)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (3)

    Hide obsolete interfaces