Reply to Trouble with new XCode 15 Preview Macro for Widgets It may be that your project is continuing to support older platform versions. At least, mine is, and adding an @available attribute to the macro resolved it: @available(iOS 17.0, *) #Preview("Small", as: .systemSmall) { ... etc ... Developer Tools & Services Xcode Sep ’23