Using SwiftUI previews on real device within SPM package code
I am trying to modularize my iOS project and extract a feature as a module using SPM. This module contains some SwiftUI code that I want to test with Xcode Previews on a real device. The preview works fine when run with the simulator, but when I try to run the code on a real device, I get this strange error: