Migrating from Git dependencies
Move existing SwiftPM dependencies from Git URLs to registry package identifiers.
Register the registry
Point SwiftPM at the registry for your project (or globally with --global).
bashswift package-registry set https://registry.swiftregistry.ioSwap 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")Resolve and verify
Resolve as usual. SwiftPM downloads immutable, checksum-verified artifacts from the registry instead of cloning Git repositories.
bashswift package resolve
The swiftregistry CLI (setup · doctor) generates and validates your registries.json configuration; Package.swift dependency edits stay manual.