A package dependency of a Swift package.
SDK
- Xcode 10.2+
Framework
- Swift Package Manager
Declaration
Overview
A package dependency consists of a Git URL to the source of the package, and a requirement for the version of the package.
The Swift Package Manager performs a process called dependency resolution to figure out the exact version of the package dependencies that an app or other Swift package can use. The Package
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
file inside your .xcodeproj
or .xcworkspace
.