WidgetKit widgets crashing on iOS 18 beta 5

My app’s WidgetKit widgets are all crashing on iOS 18 beta 5. They were working just fine on earlier betas. This is happening across both Home and Lock Screen widgets. It's an EXC_BAD_ACCESS crash that seems to be happening deep within WidgetKit.

I've seen other developers posting about this on social media, so it's not just me. Wanted to get this flagged ASAP as it's very late in the beta cycle now...

Filed as FB14684253.

Answered by developer555 in 798982022

Fixed in Xcode beta 5, which released a day after iOS beta 5.

Same issue here. I wasted hours today thinking it was my fault.

Are you using Control center widgets? Are your AppIntents and widgets inside a framework?

Accepted Answer

Fixed in Xcode beta 5, which released a day after iOS beta 5.

WidgetKit widgets crashing on iOS 18 beta 5
 
 
Q