【发布时间】:2020-10-30 14:22:38
【问题描述】:
我正在尝试使用 macCatalyst 将我的 iOS 应用程序移植到 Mac,但我遇到了 Siri Shortcuts 的问题。代码符合并运行,但是当我尝试使用 INUIAddVoiceShortcutViewController 添加快捷方式时,我看到“快捷方式不可用”。
使用
INVoiceShortcutCenter.shared.getAllVoiceShortcuts 返回错误 [Intents] -[INVoiceShortcutCenter getAllVoiceShortcutsWithCompletion:]_block_invoke Error from -getVoiceShortcutsWithCompletion: Error Domain=NSCocoaErrorDomain Code=4099 "Couldn’t communicate with a helper application."
任何想法我做错了什么?相同的代码在 iOS 上运行良好。
【问题讨论】:
标签: sirikit mac-catalyst