Creating Shortcut with StartWorkoutIntent always nil

Trying to create a shortcut for default StartWorkoutIntent but alwasy return nil. Anybody have similar problem or know what might be the problem?

if let shortcut = INShortcut(intent: startWorkoutIntent) {


    let relevantShortcut = INRelevantShortcut(shortcut: shortcut)
    relevantShortcut.shortcutRole = INRelevantShortcutRole.action

}

Is it possible that any of the integer parameters in startWorkoutIntent == 0?


https://forums.developer.apple.com/message/329664#329664


Mine worked when I set all to non-zero, though of course that screws other things up, as 0 can be a legit value.

Creating Shortcut with StartWorkoutIntent always nil
 
 
Q