StoreKit + SwiftUI Previews - No such module '_StoreKit_SwiftUI'

Viewed 809

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?

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

Related