Intent Extension for Siri Shortcuts 适用于示例应用程序而不适用于现有项目

Intent Extension for Siri Shortcuts works in Sample App not in existing project

我正在尝试在我现有的 Obj-C 项目中使用 Intents Extension 作为 iOS 13 中的对话快捷方式。我已经按照所有步骤进行操作,并且这些过程在示例应用程序中运行良好。

但是当我在我现有的应用程序中试用它时,intents 无法启动并且它会自动重定向到我的父应用程序。

控制台报错如下

[Intents] -[INCache cacheableObjectForIdentifier:] Unable to find cacheable object with identifier intents-remote-image-proxy:?proxyIdentifier=2A439A9B-6D95-BFB2-FCE4-31408D1E677F.png&storageServiceIdentifier=com.apple.Intents.INImageServiceConnection in cache.

有没有人遇到过这样的意图问题?请分享您对此的看法。

附加信息: 意图已注册。已经实现了 'handle' 'resolve' 方法并且还在接口中声明了它们。

使扩展的最小部署目标与父级相同(这造成了我之前错过的问题)。

问题是由于在 'Build Phases' 下的 'Embed App Extensions' 中将 'Copy only when installing' 布尔值设置为 'true' 而产生的。检查后问题已解决 'false'.