ConfigurationIntent dosen’t load dynamic objects - stuck at loading indicator - iOS 14.2

Hello everyone

I have been working on configurable widgets by following some tutorials as it’s my first time working with widget configurations and intents. For some odd reason beyond my understanding, the widget configuration gets stuck with a loading indicator whenver “Choose goal” is pressed in the earlier mentioned view and when clicking again it shows an empty list, as shown in the following video (It seems certain URL's are not allowed - this is my first post on Apple forums, and as the video is crucial for demonstration purposes I hope that the mods makes an exception - otherwise delete it):
streamable.com/nprisr

I have attached the following three files being the IntentHandler, WidgetProvider and WidgetEntryModel in the following gist:
https://gist.github.com/lgv2800/b1e16fbc3774c430aab3b3954d394068

Resources used
https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget

Goal to achieve
Make the widget configuration view show a list of all goals instead of being stuck with a loading indicator.

Thanks in advance.
It's probably crashing somewhere inside provide[Type]OptionsCollection(for: with:) and keeps spinning because the completionHandler isn't called.

I had a similar issue when I forgot to add the App Group capability to the Intent target so I could access the CoreData store. You can debug your intent by running your intent scheme. Xcode will prompt you for an application, select yours and then go back to the home screen to edit your widget. That should at least point you in the right direction.

ConfigurationIntent dosen’t load dynamic objects - stuck at loading indicator - iOS 14.2
 
 
Q