简体   繁体   English

StoreKit + SwiftUI 预览 - 没有这样的模块 '_StoreKit_SwiftUI'

[英]StoreKit + SwiftUI Previews - No such module '_StoreKit_SwiftUI'

After I added Storekit to my App SwiftUI-Previews doesn't work anymore.在我将 Storekit 添加到我的应用程序之后,SwiftUI-Previews 不再起作用。 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?有没有其他人知道这个问题并且对如何解决这个问题有想法?

Here's a temporary fix for Xcode 12 Beta 5. Hopefully it will be fixed in the next version so it can be removed.这是 Xcode 12 Beta 5 的临时修复。希望它会在下一个版本中得到修复,以便可以将其删除。

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谢谢: https://twitter.com/brentdax/status/1297988060462759936

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM