Swift Package Manager Mirrors for Local Development
A dependency mirror refers to an alternate source location which exactly replicates the contents of the original source. [1] I often end up in the same situation: I need to tweak an internal package that a project depends on. The usual options are: Drag and drop the repo into Xcode (Xcode replaces the remote dependency with the local copy) Change Package.swift to a local path dependency Both work, but I prefer a CLI-only workflow. Turns out SPM has a cleaner alternative: dependency mirroring! ...