Hi there,
I am working on an iOS mobile app, with a MVVM architecture and created an SPM folders for my DesignSystem, CoreKit, UnityBridge, and VoicePipeline.
I added the packages locally, and dragged them into the project. Is working this way recommended? Or not? Should all the SPM folders I listed above be used this way, or should only some?
New to this, unsure what is best.
I do plan on sharing my code with other devs to work on. I thought this made sense, but if i did it the other way I was unsure how I would share the packages what is a best practice. Thanks so much!
Is working this way recommended? Or not? Should all the SPM folders I listed above be used this way, or should only some?
There isn’t a single correct answer to these questions. Different folks have different requirements and thus use different approaches based on those requirements.
Having said that, if your goal is to share a package with other developers then the standard practice is to host that package in a shared Git repository and then reference it at that location. Local package references are helpful in a number of situations — for example, during bring up, and when you need to modify a remote package quickly and easily while working on a specific issue — but most of the time you’ll want to use remote packages.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"