Previously, we mentioned a Rome version of Cocoapods that you can use for your Swift scripts.

Swift is moving fast, and now we have the official Swift Package Manager!.

Instead of writing a Podfile, you write a Package.swift, which is made up of Swift code declaring the dependencies.

Then to get the dependencies:

swift build

More Commands

# If you prefer to setup with a template, including .gitignore, Sources and Tests
swift package init

# Generate the Xcode Project
swift package generate-xcodeproj

# Update
swift package update

# Show the dependency as a tree
swift package show-dependencies




Back to Home