SwiftPM + CoreData: Failing SwiftUI Previews? Here Are 5 Tips to Fix | by Cihat Gündüz | Mar, 2022

Fixing Xcode bugs that make SwiftUI previews fail in apps modularized with SwiftPM and that are using CoreData

Cihat Gundüz
Photo by James Wainscoat on Unsplash
Error stating `FocusTimer` can’t be found in scope despite `import Model` & successful build.
Clicking on “Diagnostics” just stating “MessageError: Connection interrupted.”
Contents of Xcode Previews .ips file with a proper error console output.
Want to Connect?You can also find me on 👾 Twitch, on 🎬 YouTube and on 🐦 Twitter.

Leave a Comment