Widget Configuration w/ Distance type parameter crashes Widget Gallery

Has anyone been successful creating a widget configuration that uses any of the "Measurement" type parameters? I'm running into crashes in the Widget/Home Screen when I try to do so.

I am building a widget that provides functionality to 'nearby' points of interest. I just discovered that SiriIntents support specifying a Measurement type now --> Distance.

When I have my configuration "nearbyDistance" parameter type set to the measurement type of Distance, adding the widget from the widget gallery crashes it after I hit the add button and it doesn't get added.

This works:

This crashes the Widget Preview and doesn't add the widget to the Home Screen:

Right before I add my widget, things seem to be good:

As soon as I tap Add Widget, this happens:

I have created a feedback for this and attached some recordings and a sysdiagnose: FB10002319

This has been bugging me for weeks, and I've just narrowed it down to this exact issue!

It was so difficult to isolate because it seemed to work perfectly sometimes, even with the distance param included, but then once it stopped working, it would never work again until I removed that distance param. It then starts working again, and I can safely add the distance param back until... it stops working again at some point in future 🤬

Strangely, once it stops working, it won't work again even with complete refresh of derived data, wiping device/simulator etc, so it seems like something changes that is persisted - so a possible change in the Intent Definition file that's being made by Xcode?

I take it you've not found a solution since you reported this @edorphy?

Widget Configuration w/ Distance type parameter crashes Widget Gallery
 
 
Q