There is a bunch of code inside this project which is potentially really useful outside of it — for example, I've been using just the
Version struct (from PackageDescription) in my macOS app.
However, I'm wondering if there's a clean way to access it? At present I'm cloning the whole spm repo, and dragging just the two code files I need from the
swift-package-manager/Sources/PackageDescription folder into Xcode. I rather wish
Version was a separate project, becoming a dependency of spm.
Also, sorry if this is documented already, but why are there so many version-related structs? I count at least 3 or 4 which at a glance look pretty similar.