SSwift Registry.
Get started

Migrating from Git dependencies

Move existing SwiftPM dependencies from Git URLs to registry package identifiers.

  1. Register the registry

    Point SwiftPM at the registry for your project (or globally with --global).

    bash
    swift package-registry set https://registry.swiftregistry.io
  2. Swap URLs for package identifiers

    In Package.swift, replace each Git-URL dependency with its registry identifier (scope.name) — for example github.com/acme/networkkit becomes acme.networkkit (requires swift-tools-version 5.7 or later). Also update any target .product(name:package:) references to the new identifier:

    swift
    .package(id: "acme.networkkit", from: "1.0.0")
  3. Resolve and verify

    Resolve as usual. SwiftPM downloads immutable, checksum-verified artifacts from the registry instead of cloning Git repositories.

    bash
    swift package resolve

The swiftregistry CLI (setup · doctor) generates and validates your registries.json configuration; Package.swift dependency edits stay manual.