When using Swift Packages in Xcode, is there a way to exclude files conditionally (like using DEBUG or similar)? I know I can exclude files but I want them while in development, but not in production.
I have a package that contains developments resource/assets (used to seed a Core Data database for the simulator + for Previews, with images and files), but I don't want to include these files in the package used by the real app when archiving.
Curious to know if there are any changes to this? I have a bunch of CSV files that are used for Previews in many different packages (Features), but I want to exclude them from release builds.