INVoiceShortcutCenter returns invalid / nil shortcuts

Number:rdar://FB7716578 Date Originated:27/05/2020
Status:Open Resolved:
Product:SiriKit Product Version:iOS 13
Classification:Incorrect/Unexpected Behavior Reproducible:Yes
This function call ALWAYS returns nil for both the shortcut and the error:

    INVoiceShortcutCenter.shared.getVoiceShortcut(with: uuid) { (shortcut, error) in
        // ...

It doesn't take much at all to reproduce. Add a shortcut to an app using a specific UUID. Try to get the shortcut later using this function. It's always nil; both the shortcut and the error.

Additional documentation on this particular bug (which appears to be widespread):


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!