Swift ToolingLesson 40Free preview
Swift Package Manager
This lesson is part of Swift · All levels
Summary
This lesson reviews Swift Package Manager (SPM) which is Apple's official built-in tool for managing Swift's dependencies and distributing its code library. Configured using the manifesto file Package.swift, SPM is fully integrated into Xcode and the terminal, replacing dependence on third-party tools such as CocoaPods.
Key points
- Swift Package Manager (SPM) is the official build tool and package manager built by Swift.
- The package manifest is configured using the declarative Swift code on the file 'Package.swift'
- Supports open-source library dependence directly from the Git repository URL
- Visually integrated directly into the File > Add Package Dependencies menu on Xcode
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.