Thanks! Sounds to answer my question. I'll make sure to add the #if DEBUG to my preview providers in packages that don't use any assets (and in the app too). I didn't know this could be used in packages too (where is the compiler flag defined for the package, like it is for a project with Active Compilation Conditions?).
For the packages that need assets, I'm not sure I correctly understand:
For your debug build, build this new root package from #2. And for the release build, build just the original package.
Can you tell me how to use either the package from #2 or the original package in the app?
In the app target, I have to import the packages needed. Do I have to create a new app target so I can import either package from #2 or the original package?
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: