Skip to main content
Commands for managing Swift Package Manager (SPM) dependencies in your Xcode project.

flowdeck project packages list

List packages (direct and transitive).
flowdeck project packages list
flowdeck project packages list --json
flowdeck project packages list --verbose

Options

OptionShortDescription
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--json-jOutput as JSON
--verbose-vShow detailed output

flowdeck project packages add

Add a package dependency.
# Remote package
flowdeck project packages add https://github.com/Alamofire/Alamofire.git \
  --kind upToNextMajor --value 5.0.0

# Local package
flowdeck project packages add ../MyLocalPackage

Options

OptionShortDescription
--kind <type>-kVersion rule type (required for remote packages)
--value <value>-VVersion/branch/revision (required for remote packages)
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--json-jOutput as JSON
--verbose-vShow detailed output
Supported rule types: upToNextMajor, upToNextMinor, exact, branch, revision.

flowdeck project packages remove

Remove a package dependency by identity or URL.
flowdeck project packages remove alamofire
flowdeck project packages remove https://github.com/Alamofire/Alamofire.git

Options

OptionShortDescription
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--json-jOutput as JSON
--verbose-vShow detailed output

flowdeck project packages resolve

Resolve package dependencies without updating to newer versions.
flowdeck project packages resolve
flowdeck project packages resolve --scheme MyApp

Options

OptionShortDescription
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--scheme <name>-sScheme name
--derived-data-path <path>Custom derived data path (default: ~/Library/Developer/FlowDeck/DerivedData)
--json-jOutput as JSON
--verbose-vShow detailed xcodebuild output

flowdeck project packages update

Update packages (clears cache and re-resolves).
flowdeck project packages update
flowdeck project packages update --scheme MyApp

Options

OptionShortDescription
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--scheme <name>-sScheme name
--derived-data-path <path>Custom derived data path (default: ~/Library/Developer/FlowDeck/DerivedData)
--json-jOutput as JSON
--verbose-vShow detailed xcodebuild output

flowdeck project packages clear

Clear the Swift package cache (SourcePackages).
flowdeck project packages clear

Options

OptionShortDescription
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--derived-data-path <path>Custom derived data path (default: ~/Library/Developer/FlowDeck/DerivedData)
--json-jOutput as JSON
--verbose-vShow detailed output

Link package products to a target.
flowdeck project packages link https://github.com/apple/swift-collections \
  --target MyApp --products Collections,DequeModule

Options

OptionShortDescription
--target <name>-tTarget name to link products to
--products <list>Comma-separated products to link
--project <path>-pProject directory
--workspace <path>-wPath to workspace or project
--json-jOutput as JSON
--verbose-vShow detailed output