Closed joshluongo closed 2 years ago
As far as I can tell there's no way to only import swift packages in a debug build, so I'll probably stick to CocoaPods for now, but I see no harm in adding this as an option too.
To my knowledge that is correct, you can't only apply it to debug builds.
I use fastlane so my use case is applying it to the Test Target that generates the screenshots.
I wonder if a sentence or two in the README might be useful here, given the subtlety of using it in an SPM-based project. This conversation will get buried now that the PR is closed and as soon as people see a Package.swift
file, people will potentially add it as a regular dependency without thinking.
Oh and it can also have a home here now, too! 🚀
@daveverwer good call. https://github.com/shinydevelopment/SimulatorStatusMagic/pull/101
I've added a basic Package.swift file to this can be imported using Swift Package Manager.
This is my first attempt at converting an exisiting project in to a SPM Package. It seems to work for me but I could have missed something :)