Dependency

    A package dependency of a Swift package.

    PackageDependency.swift:27Dependency.md
    class Dependency

    A package dependency consists of a Git URL to the source of the package, and a requirement for the version of the package.

    Swift Package Manager performs a process called dependency resolution to determine the exact version of the package dependencies that an app or other Swift package can use. The Package.resolved file records the results of the dependency resolution and lives in the top-level directory of a Swift package. If you add the Swift package as a package dependency to an app for an Apple platform, you can find the Package.resolved file inside your .xcodeproj or .xcworkspace.

    Creating a Package Dependency

    Declaring Requirements

    Describing a Package Dependency

    See also

    Other members in extension

    View members

    Hide members

    This section is hidden by default because it contains too many (14) members.

    Type members

    Show obsolete interfaces (3)

    Hide obsolete interfaces

    Instance members

    Citizens in PackageDescription

    Types

    Type members

    Show obsolete interfaces (7)

    Hide obsolete interfaces

    Instance members

    Show obsolete interfaces (2)

    Hide obsolete interfaces