Using iOS 17.2. (no Beta) and the following code, I am still unable to use AppShortcuts in Siri, or in the Shortcuts app. The AppIntent is showing in the Shortcuts app, but the AppShortcut is not. I've tried cleaning the build folder, restarting the device, reinstalling both Shortcuts and my app, and even creating a blank project and trying it.
I'm sure there is something simple I am missing, can anyone see something wrong with this code? Is there some config I need to complete for this to work?
struct TestIntent: AppIntent {
static var title: LocalizedStringResource = "Test a basic intent"
static var description = IntentDescription("just another basic test intent")
func perform() async throws -> some IntentResult {
print("Test intent has been called")
return .result(value: "Test intent was successful")
}
}
struct TestAppShortcuts: AppShortcutsProvider {
static var appShortcuts: [AppShortcut] {
AppShortcut(
intent: TestIntent(),
phrases: [
"Test Add Point"
],
shortTitle: "TEST THIS SHORTCUT",
systemImageName: "money"
)
}
}