Axel Le Pennec<p>When using Swift Packages in Xcode, is there a way to exclude files conditionally (in DEBUG or similar)? I know I can exclude files but I want them while in development.</p><p>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.</p><p>Can we achieve that?</p><p><a href="https://iosdev.space/tags/Xcode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Xcode</span></a> <a href="https://iosdev.space/tags/swift" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swift</span></a> <a href="https://iosdev.space/tags/swiftpackagemanager" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>swiftpackagemanager</span></a> <a href="https://iosdev.space/tags/iOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iOS</span></a> <a href="https://iosdev.space/tags/iosdev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>iosdev</span></a> <a href="https://iosdev.space/tags/CoreData" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CoreData</span></a></p>