I'm losing my mind over this issue. I have been working with Siri Intents for a few days, and (rough patches aside) it's been working fine, and I'm using 'conversational' Siri to good effect. I tweaked a couple of intents yesterday, and then added a couple of new intents as well, and tested with the Shortcuts app, and they worked just fine.
Today I tested the same functionality with Siri dialogs, and it's not working as expected. Basically, it ignores the "Siri Dialog Prompt" setting from the intents definition file, and instead gives me a generic "What should <variablename> be?". I want it to say something else (like "What should the list say?") but it ignores that. It even speaks out the variable name from intentsdefinition file, and not the 'display name'.
Things I've tried:
- added new intents
- tried this on 2 different devices (including rebooting the device, doing clean builds and deleting derived data)
- created a new intents definition file and copy-pasted the intents
- created a new intents definition file and made the intents again from scratch
- created a whole new project and made the same intent there, and it worked fine!
- the SoupChef example works fine too.
So I'm not sure what to try. My guess is something is being cached on either my development machine, or my device. I checked something in the device logs, and these snippets seem relevant:
default 20:15:44.847013 -0700 ShortcutsIntents -[WFBundledActionProvider createActionsForRequests:] Found actions: (
)
default 20:15:44.847107 -0700 ShortcutsIntents -[ICAppRegistry _appsWithIdentifiers:] Loading apps: {(
"com.zaal.TestingSiriShortcuts"
)}
error 20:15:44.851819 -0700 ShortcutsIntents -[ICAppRegistry _appsWithIdentifiers:] Failed to load a definition for com.zaal.TestingSiriShortcuts
error 20:15:45.071015 -0700 ShortcutsIntents Couldn't read values in CFPrefsPlistSource<0x101133f20> (Domain: group.is.workflow.my.app, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null), Contents Need Refresh: Yes): Using kCFPreferencesAnyUser with a container is only allowed for System Containers, detaching from cfprefsd
also:
default 20:15:45.165129 -0700 runningboardd Assertion 24-300-241 (target:xpcservice) will be created as active
error 20:15:45.193307 -0700 ShortcutsIntents -[WFRemoteQuarantinePolicyManager latestRemotePolicyAssetBundle] Encountered an error while trying to access asset bundles directory (file:///var/mobile/Library/Shortcuts/QuarantineAsset). Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “QuarantineAsset” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///var/mobile/Library/Shortcuts/QuarantineAsset, NSFilePath=/var/mobile/Library/Shortcuts/QuarantineAsset, NSUnderlyingError=0x10129d120 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
error 20:15:45.196302 -0700 ShortcutsIntents -[WFRemoteQuarantinePolicyManager latestRemotePolicyAssetBundle] Encountered an error while trying to access asset bundles directory (file:///var/mobile/Library/Shortcuts/QuarantineAsset). Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “QuarantineAsset” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///var/mobile/Library/Shortcuts/QuarantineAsset, NSFilePath=/var/mobile/Library/Shortcuts/QuarantineAsset, NSUnderlyingError=0x10114f140 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
default 20:15:45.196843 -0700 runningboardd Calculated state for xpcservice: running-active (role: UserInteractiveNonFocal)
default 20:15:45.197044 -0700 runningboardd Finished acquiring assertion 24-300-241 (target:xpcservice)
error 20:15:45.198912 -0700 ShortcutsIntents -[WFRemoteQuarantinePolicyManager latestRemotePolicyAssetBundle] Encountered an error while trying to access asset bundles directory (file:///var/mobile/Library/Shortcuts/QuarantineAsset). Error: Error Domain=NSCocoaErrorDomain Code=260 "The file “QuarantineAsset” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///var/mobile/Library/Shortcuts/QuarantineAsset, NSFilePath=/var/mobile/Library/Shortcuts/QuarantineAsset, NSUnderlyingError=0x10129ffa0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
default 20:15:45.210596 -0700 ShortcutsIntents -[WFAction runWithInput:userInterface:parameterInputProvider:variableSource:completionHandler:] Action started running
And this:
default 20:15:47.162702 -0700 runningboardd Finished acquiring assertion 24-23-243 (target:xpcservice)
default 20:15:47.181866 -0700 FastAddContactSiriIntentsiExtension TestNameForTestIntentWithName - name is empty, 'needs value'
default 20:15:47.248839 -0700 runningboardd Calculated state for xpcservice: running-active (role: UserInteractiveNonFocal)
default 20:15:47.781817 -0700 symptomsd CFSM dynamic blacklist unrecognized com.apple.WorkflowKit.ShortcutsIntents (app: , state: 1)
default 20:15:47.782960 -0700 symptomsd CFSM dynamic blacklist returning (value/reason/headroom/overdraft): {
"com.apple.AppPredictionWidget.extension" = 0;
"com.apple.WorkflowKit.ShortcutsIntents" = 0;
"com.apple.shortcuts" = 1;
"com.apple.siri" = 1;
"com.zaal.TestingSiriShortcuts" = 0;
}/{
"com.apple.AppPredictionWidget.extension" = AppUnknown;
"com.apple.WorkflowKit.ShortcutsIntents" = AppUnknown;
"com.apple.shortcuts" = WithinAllowance;
"com.apple.siri" = WithinAllowance;
"com.zaal.TestingSiriShortcuts" = AppBlacklisted;
}/{
"com.apple.shortcuts" = 0;
"com.apple.siri" = 0;
}/{
}
It's unfortunate that the system is so opaque, but it feels like something has caused my app to be 'blacklisted', which could well be part of the problem (or not).
Hopefully someone from Apple's universe can comment on this, and help me get past this stage that I'm stuck with now.