After installing the latest version of Xcode (16.3, 16E140), I get many instances of this error when building my app: Error: Multiple parameters detected in phrase. A single phrase can only use a single parameter.
Here is an example of an App Shortcut that is causing this error:
AppShortcut(
intent: SelectModelIntent(),
phrases: [
"Select \(\.$model) in \(.applicationName)",
],
shortTitle: LocalizedStringResource("Select Model", comment: "Title for Shortcut"),
systemImageName: "rectangle.3.group"
)
If I replace the application name parameter with a hard-coded string, I get an error that says I need to have the application name parameter in each phrase. So is it not possible to have any other parameters in a phrase besides the application name? That seems unlikely to me.