WidgetExtension Crashes on launch in Xcode 15 Beta 3

When applied .contentMarginsDisabled() modifier to WidgetConfiguration, Widget extension crashes on launch in Xcode 15 Beta 3.

struct TestWidget: Widget {
    let kind: String = "TestWidget"

    var body: some WidgetConfiguration {
        return IntentConfiguration(kind: kind,
                            intent: TestIntent.self,
                            provider: TestProvider()) { entry in
            TestView(entry: entry)
        }
        .configurationDisplayName("TestWidget")
        .description("This is TestWidget.")
        .supportedFamilies([.systemMedium])
        .contentMarginsDisabled() // << Here
    }
}

Though it works in Xcode 15 Beta 2. Anyone facing same issue ?

Answered by wangjin1990 in 758329022

Xcode 15 Beta 2. same issue

Accepted Answer

Xcode 15 Beta 2. same issue

Xcode 15 Beta 5, same issue

I have this same issue in Xcode 15 RC (15A240d). Has anyone found a solution to this?

Version 15.0.1 (15A507). Same Issue, any solution?

WidgetExtension Crashes on launch in Xcode 15 Beta 3
 
 
Q