SW

Swift Package Manager

Swift build and dependency tooling

Details

Language / Topic
swiftSwift
Category
Tooling

Rules

balanced
- Use Swift Package Manager (SPM) for dependency management — define packages in `Package.swift` with explicit version requirements.
- Run `swift build` and `swift test` in CI — SPM handles dependency resolution, compilation, and test execution.
- Organize code into local packages for modular architecture — use `Package.swift` targets to enforce dependency boundaries between modules.
- Use SPM with `Package.swift` for dependency management.
- Run `swift build` and `swift test` in CI.
- Organize code into local SPM packages for modularity.
- Use `.upToNextMajor(from:)` for dependency version ranges.