Shortcuts not appearing in Shortcuts.app

I'm curious if anyone else has figured out why an intent defined in the intents file never seems to appear in the Shortcuts app on MacOS.

I'm following the steps outlined in "Meet Shortcuts for MacOS" from WWDC 2021.

https://developer.apple.com/videos/play/wwdc2021/10232

I build and run my app, launch Shortcuts, and the intent I defined refuses to show up!

There's one caveat - I allowed Xcode to update to 16.1, and mysteriously the intent became available in Shortcuts.app. When I went to add a second intent, I see the same as above - it simply never shows up in Shortcuts.app.

I have a few intents I'd like to write/add, but this build/test cycle is really slowing me down.

This app is a completely fresh Swift-AppKit app, I've never archived it, so there shouldn't be more than one copy on disk. I have also cleaned the build folder, restarted Xcode, restarted Shortcuts, restarted my machine entirely...

Anyone see this before and find a workaround? Any advice on how to give Shortcuts.app a kick in the rear to try and find my second intent?

Answered by webworker in 815599022

Geese this forum seems dead.

I figured out what's going on here, sharing the solution/workaround in case someone else has this issue and Google and Bing are gracious enough to index it.

You need to restart your Mac.

  1. Define your intent. You can do this programmatically by subclassing AppIntent, or using by creating an Intents file as they show in the WWDC session I mentioned above.
  2. Build and run the app.
  3. Restart your Mac.
  4. Open your Xcode project, build and run.
  5. Open Shortcuts.
  6. Your intent should be visible in Shortcuts now!

Once the Shortcuts app has found the intent, you'll be able to edit, compile, run changes without restarting your computer or closing/opening the Shortcuts app.

Hope this helps!

Accepted Answer

Geese this forum seems dead.

I figured out what's going on here, sharing the solution/workaround in case someone else has this issue and Google and Bing are gracious enough to index it.

You need to restart your Mac.

  1. Define your intent. You can do this programmatically by subclassing AppIntent, or using by creating an Intents file as they show in the WWDC session I mentioned above.
  2. Build and run the app.
  3. Restart your Mac.
  4. Open your Xcode project, build and run.
  5. Open Shortcuts.
  6. Your intent should be visible in Shortcuts now!

Once the Shortcuts app has found the intent, you'll be able to edit, compile, run changes without restarting your computer or closing/opening the Shortcuts app.

Hope this helps!

Shortcuts not appearing in Shortcuts.app
 
 
Q