App Intents in frameworks

In previous years it seems there were limitations about where AppIntent types could live in your code base for them to be surfaced up to the Shortcuts app. Specifically, they needed to be in the top level app or extension target.

However, WWDC24's What's new in App Intents talks about "Framework Improvements" and has a slide that implies that AppEntity, AppEnum, AND AppIntent types can live in a framework.

Is this actually the case? I can see the Metadata.appintents in the build products of my framework, and my intent is included in the JSON, but these intents never make it into the Shortcuts app when I install an app that consumes the framework. I'm testing this with Xcode 16b1 in a iOS 18 simulator.

Apparently AppIntentsPackage is supposed to address this kind of thing, but even after setting that up it isn't working for me. I see the details of my AppIntentsPackage types in the Metadata.appintents, but things still aren't picked up by Shortcuts.

I updated to Xcode 16b2 and still have the issue. I put together a sample project here. https://github.com/brianpartridge/AppIntentCounter2

App Intents in frameworks
 
 
Q