


The package manager’s system requirements are the same as those for Swift with the caveat that the package manager requires Git at runtime as well as build-time. Please use this guide for learning package manager basics.įor Quick Help use the swift package -help command.įor documentation on using Swift Package Manager, creating packages, and more, see the documentation directory.įor documentation on developing the Swift Package Manager itself, see the contribution guide.įor detailed documentation on the package manifest API, see PackageDescription API.įor release notes with information about changes between versions, see the release notes. The SourceKit-LSP project leverages libSwiftPM and provides Language Server Protocol implementation for editors that support LSP. Starting with Xcode 11, Xcode integrates with SwiftPM to provide support for including packages in iOS, macOS, watchOS, and tvOS applications. Swift Package Manager includes a build system that can build for macOS and Linux. We’ve designed the system to make it easy to share packages on services like GitHub, but packages are also great for private personal development, sharing code within a team, or at any other granularity. The tool directly addresses the challenges of compiling and linking Swift packages, managing dependencies, versioning, and supporting flexible distribution and collaboration models. The Swift Package Manager is a tool for managing distribution of source code, aimed at making it easy to share your code and reuse others’ code.
