Migrating custom intents to App Intents

Hi, I am trying to migrate my custom intents to App Intents, and was running into some issues. My current intentdefinitions file and all intent handling code are in a framework that is shared with my app target. I went through the migration assistant and added the App Intents codes directly to my main app target. When I run a shortcut with the App Intent, it doesn't work ... I get some messages in the console that say:

Could not find an intent with identifier MyCustomAddContactIntent, mangledTypeName: Optional("")

I guess the old custom intents and new App Intents should both live in the same package to see each other. In this case, I'm not sure if all the existing custom intents file and all the intents handler logic should be moved into the main app bundle (and removed from framework), or should I add the new App Intents handlers into the framework (in addition to the main app)?

Also, will the custom framework even be needed or run in iOS16+?

Thanks.

Migrating custom intents to App Intents
 
 
Q