IntentsKit in AppKit not working for me

I'm trying to add support for Shortcuts to my Mac app.

I followed the steps here: https://developer.apple.com/documentation/sirikit/adding_user_interactivity_with_siri_shortcuts_and_the_shortcuts_app?language=objc

but my app does not show up in Shortcuts.

In addition to those steps, I also added my intent to (main app target) > General > Supported Intents. This had no effect.

I believe that I don't need to create a separate intents extension for mac as you would on iOS. I tried that as well, but it still didn't show up in Shortcuts.

This is a pure AppKit app, not iOS, not Catalyst.

Is there a magic Info.plist key I'm missing? This problem is frustrating because there doesn't seem to be any way to analyze it.

If you want to see what I've done it's at https://github.com/gnachman/iterm2.git in these branches:

  • intents_extension
  • main_app_intent

Replies

The main_app_intent branch appears to be working fine! Are you still seeing that not working? Which version of macOS are you running?

For the intents_extension branch, you need to make sure the .intentdefinition file is in the main app target so it gets copied into the bundle.