# Swift Package Manager

> Organize, manage, and edit Swift packages

Source: https://talira.ai/catalog/swift-package-manager-vdj5v0y3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Command-line tool
- Categories: [developer tools / package managers](https://talira.ai/categories/developer-tools/package-managers)
- Platforms: macos, linux[^2]
- Licence: Apache-2.0 WITH Swift-exception[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Plugins: yes[^3]
- Backed by: [The Swift Project](https://talira.ai/orgs/swift-project.md)

Swift Package Manager (SwiftPM) is the package manager and build tool that comes with [Swift](https://talira.ai/catalog/swift-05qrpmw7.md). A `Package.swift` manifest declares a package's targets, products and dependencies, which SwiftPM resolves (from Git repositories or a package registry), fetches, compiles and links; `swift build`, `swift test` and `swift run` build, test and run the code on macOS and Linux. It handles versioning, resources, C language targets and module maps, build plugins and command plugins, package collections and SBOM generation, and since Xcode 11 [Xcode](https://talira.ai/catalog/xcode-yrayr0fd.md) uses it to add packages to iOS, macOS, watchOS and tvOS apps. SourceKit-LSP builds on it as a library for editors. It ships in every Swift toolchain and is Apache-2.0 licensed.

## Links

- Website: https://www.swift.org/documentation/package-manager/
- GitHub: https://github.com/swiftlang/swift-package-manager
- Docs: https://docs.swift.org/latest/documentation/packagemanagerdocs/

## Problems it solves

- add a third-party Swift library to my iOS or macOS app
- share my Swift code as a package other projects can depend on
- build and test a Swift project from the command line on Linux
- pin and update the versions of my Swift dependencies
- run code generation or linting as part of a Swift package build with a plugin
- host private Swift packages in a package registry for my team
- generate an SBOM for a Swift package

## Features

- Package.swift manifest for targets, products and dependencies
- dependency resolution from Git repositories and package registries
- swift build, swift test and swift run commands
- resources, C language targets, module maps and module aliasing
- build tool and command plugins
- package collections
- SBOM generation
- registry server specification for hosting packages
- integrated with Xcode since Xcode 11
- usable as a library (libSwiftPM), as SourceKit-LSP does

## Capabilities

- Has a command line tool: plan not known
- Takes plugins: plan not known

## Trust

Overall: 0.38 out of 1.
Signals: backing 0.30, extensibility 0.40.

- backed by The Swift Project
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Swift](https://talira.ai/catalog/swift-05qrpmw7.md)

## Sources

[^1]: https://github.com/swiftlang/swift-package-manager/blob/main/LICENSE.txt (checked 24 Nov 2026)
[^2]: https://github.com/swiftlang/swift-package-manager (checked 24 Nov 2026)
[^3]: https://docs.swift.org/latest/documentation/packagemanagerdocs/ (checked 24 Nov 2026)
