Siri Suggested Shortcut "Sorry, there was a problem with the app."

I created an Intent and set it with the "setShortcutSuggestions" API inside of "AppDelegate didFinishLaunchingWithOptions". When I open the settings app I see the suggested shortcut and am able to record the personalized phrase as expected.


When I then activate the shortcut by voice, Siri always returns "Sorry, there was a problem with the app.". There are no messages in the console or anything helpful. I did this in my own project and also simulated the same scenario using the Soup Chef app. This is via simulator and on a physical device. Note the shortcut does work properly when activated via search, just not when activated via Siri voice.


What does this error mean and how can I debug it?


Xcode 10 beta 6

Same problem here. It used to work in previous Betas. Fails for both iOS 12 Beta 8 and WatchOS 5 Beta 7. Please file a bug. Will do the same.


EDIT


I got it working. Three things to check


1) Make sure app targets have embeded extensionName.appex


2) add .continueInApp or whatever code you like


class IntentHandler: INExtension, YourIntentHandling {


func confirm(intent: YourIntent, completion: (YourIntentResponse) -> Void) {

print("⊿ \(#function) \(intent)")

completion(YourIntentResponse(code: .continueInApp, userActivity: nil ))

}


func handle(intent: YourIntent, completion: @escaping (YourIntentResponse) -> Swift.Void) {

print("⊿ \(#function) \(intent)")

completion(YourIntentResponse(code: .continueInApp, userActivity: nil))

}

}


3) compare side-by-side project details with with newest SoupChef app targets (there's a newer version recently posted)

Siri Suggested Shortcut "Sorry, there was a problem with the app."
 
 
Q