Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

StoreKit + SwiftUI Previews - No such module '_StoreKit_SwiftUI'

After I added Storekit to my App SwiftUI-Previews doesn't work anymore. The App itself builds like a charm but all the Previews are broken with the following Error Message: Code Block

No such module '_StoreKit_SwiftUI'

Does anyone else knows this issues and has an idea on how to solve this?

like image 533
Sebastian Boldt Avatar asked Dec 28 '25 04:12

Sebastian Boldt


1 Answers

Here's a temporary fix for Xcode 12 Beta 5. Hopefully it will be fixed in the next version so it can be removed.

Add the following to your build settings:

Architectures
    Excluded Architectures
        Debug
            Simulator - iOS 14.0 SDK arm64

Thank you to: https://twitter.com/brentdax/status/1297988060462759936

like image 135
Jon Reed Avatar answered Dec 30 '25 23:12

Jon Reed