Skip to content
Commitwise
Menu

Swift Package Manager

Also called: SPM, SwiftPM

Swift's built-in tool for packages: folders with a Package.swift that declares targets, products and dependencies.

Definition

A package lists its targets (modules with source code), products (libraries other code can import) and dependencies (other packages, local or remote). Xcode opens packages directly, and an app can depend on local packages inside its own repository, which is the usual way to modularize an iOS app today.

In practice

Packages/AppModules contains DesignSystem, Networking and ProfileFeature targets; the app target adds the ProfileFeature product.

Learn it in context

Lessons that use this term.

Related terms

Esc

Type to search the whole site.