The Swift Package Manager (SwiftPM) manages distribution of Swift code. The Package Manager automates downloading, compiling, and linking dependencies. SwiftPM is included in Swift 3.0 and up.
Swift...
The Swift Package Manager (SwiftPM) manages distribution of Swift code. The Package Manager automates downloading, compiling, and linking dependencies. SwiftPM is included in Swift 3.0 and up.
Swift organizes code into modules. SwiftPM functionality enables distributing these modules.
To use SwiftPM, Swift 3.0+ and Xcode 8.0+ are required on macOS. Swift 3 is also on Linux.
Create a package with “swift package init”, specifying “–type” as “library” or “executable”. This creates a Package.swift file to manage dependencies.
Package.swift defines the package. Add dependencies here.
SWIFTPM files relate to Swift packages. Visit Swift.org for SwiftPM details.
The iPad Swift Playgrounds app and Xcode open SWIFTPM files. File Viewer Plus also opens SWIFTPM files.