Same here. XCode Version 15.0.1 (15A507)
Post
Replies
Boosts
Views
Activity
I faced the same issue today when migrating to watchOS 10 and widgetkit complications. What finally helped was to add supportedFamilies to WidgetConfiguration (the body parameter of the @main Widget struct)
@main
struct WatchWidget: Widget {
let kind: String = "WatchWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
if #available(watchOS 10.0, *) {
WatchWidgetEntryView(entry: entry)
.containerBackground(.fill.tertiary, for: .widget)
} else {
WatchWidgetEntryView(entry: entry)
.padding()
.background()
}
}
.configurationDisplayName("WATCH-WIDGET")
.description("WATCH-WIDGET")
.supportedFamilies([.accessoryCorner, .accessoryCircular, .accessoryInline, .accessoryRectangular]) //<-- this
}
}
Once this was done the migration started working!