Apple introduced App Intents at WWDC 2022. The relevant talks are:

  1. Implement App Shortcuts with App Intents
  2. Dive into App Intents

If you follow these tutorial with initial Xcode 14 beta, it’s possible that the intents may not work. I spent a good 2 hours trying to troubleshoot with different devices and simulators and finally found the solution in Apple’s release notes for Xcode 14 Beta:

App Intents metadata extraction may not work if the Xcode selected using xcode-select is older than Xcode 14. (94058825)
Workaround: Select the most recent Xcode 14 with the command:
sudo `xcode-select -s \<path to beta\>`

Just run the above command, clean Xcode and app intents should work on both simulator and device.