I am trying to create an Intents Extension for macOS 12 Monterey.
What I've done:
- I've created an Intents Definition file and configured a Custom Intent
- I've created a Handler class that confirms to my Handling protocol that has been created by Xcode using the Intent Definition
- I've added an Intents Extension as a new target that creates my Handler class in
func handler(for intent: INIntent) -> Any
Problem:
My shortcut action does appear in Shortcuts. However, ever time I run a shortcut with my action, the main app launches and not the extension itself.
I've been able to figure out what I was doing wrong, look at my answer below.