Shortcut app crashing when Intent parameter has multiple value

Hi, I have an app that provides Shortcut actions. One of these actions can take as input an array of String, so I checked the "Supports multiple values" checkbox in Intents definition.

Since iOS 15, I have this strange behaviour when creating a new Shortcut:

  • if the action is the first to be added, I can add new strings as I want.
  • if there is a node present before and the array is empty, then adding a string will crash the Shortcut app.
  • (if there is a node present and the array is not empty, then I can add new strings, and even remove all the strings I added before and replace them)

Running the Intents through Xcode debugger tells me the crash appens when initializing a multiple value parameter:

2021-10-16 09:26:37.209264+0200 Shortcuts[2431:41261] *** Assertion failure in -[WFMultipleValueParameterState initWithValue:], WFVariableSubstitutableParameterState.m:49

2021-10-16 09:26:37.209968+0200 Shortcuts[2431:41261] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: value'

Am I the only one experiencing this? (a quick search through the forum says yes) How can I fix it?

This issue seems to be fixed with iOS 15.1

Shortcut app crashing when Intent parameter has multiple value
 
 
Q