SwiftUI Preview Crashing when previewing from a Swift Package that embeds a dynamic Package

Number:rdar://FB9991830 Date Originated:22/04/2022
Status:Open Resolved:No
Product:Xcode Product Version:13.3.1
Classification:Crash Reproducible:Yes
When trying to generate a preview of any SwiftUI view in our UI package, the preview isn't generated and the preview service crashes. This only happens if I import a dynamic package.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!