WidgetKit development issue with Xcode 12 beta 4 using Intents

I am having issues developing and validating for WidgetKit.

I am trying to validate for IntentConfiguration and when I try to create a new custom Intent in the already Xcode generated intentdefinition's file, the class generation is failing behind the scenes I guess. CustomIntent.swift file, when I am using this dependency, Xcode build is not able to find this class.

MyCustomIntent.swift class file is not getting generated and I am not able to create my own intents, leading to modifying the existing ConfigurationIntent.swift by creating a new project and thereby using generated intentdefinitions file for development.

Also when developing for Dynamic Intents, we cannot proceed further as, even though I am able to modify the Xcode generated new project Intentdefinition file, but when I make this Intent type to use dynamic types, there is another issue with code generation. Dynamic types Intent variables protocol methods code is not getting generated in the DynamicIntent swift class file, due to which there is zero scope to proceed in this direction.

Overall, Static configuration can help developers for a mere UI check majorly. Most of the work all depends on background fetch using dynamic type. Please help on at least the code generation part for dynamic type protocol methods : provide<Type>CollectionForDynamicConfiguration in the intent handlers protocols.
I ran into something similar yesterday, it seems like some things have changed since the WWDC videos, but
the online docs are updated.
https://developer.apple.com/documentation/widgetkit/making-a-configurable-widget

I had to make sure the .intentdefinition is included in the widget target as well as the intent handler target.
That fixed my issue with my Intent Handler extension not seeing the autogenerated intent protocols.
Make your intent handler conform to the relevant IntentHandling protocol, then implement the function stubs Xcode suggests.

Then, the widget ignores the IntentHandler until you do this step from the online docs.
"5. In the General tab of the new target’s properties, add an entry in the Supported Intents section and set Class Name to MY-AWESOME-Intent."

I've had the same issue.
After a couple hours of digging, I found out that issue was with file location.
So I've moved SiriIntents/ru.lproj/Intents.intentdefinition → SiriIntents/Intents.intentdefinition.

If it won't help just try those steps:
  1. Remove intent definition file

  2. Add new intent definition file

  3. Add new custom intent

  4. Check that swift file for new intent is generated

  5. Find out the difference between old intent definition file and a new one

Another option is simply try to recreate intent definition from scratch
WidgetKit development issue with Xcode 12 beta 4 using Intents
 
 
Q