I'm working on a few different apps in Xcode, and I use a Swift package for my "common" library. In each project, I add the common Swift package by going to the project's "Swift Packages" (next to "Info" and "Build Settings") and entering a local "file:///..." url. That checks out a read-only version. Everything works pretty well, but if I'm doing a lot of editing of the common files, it gets annoying. I have to:
- Switch to another Xcode window, which has the Swift package open in read-write mode.
- Edit the files, commit them to git, tag the commit
- Back in the app project, menubar > File > Swift Packages > Reset Package Caches (assuming I moved the tag, rather than creating a new one)
Is there a way to streamline this, so I can edit and compile files in the Swift package without having to do the git steps every time?