问题描述
我必须使用Siri通过我的应用程序发起一个voip电话。它正在演示项目中工作但是当我将Intents Extension添加到我现有的项目中时,Siri不再工作了。
I have to initiate a voip call through my app using Siri. It is working in demo project but when I am adding the Intents Extension into my existing project then Siri is not working anymore.
在系统设置中,我的应用程序未显示在应用程序支持部分中。 Plist配置如下:
In system settings the my app is not showing in App Support section. Plist configuration is like:
另见扩展名的plist配置:
Also see the plist configuration of extension:
每当我给予任何语音命令它说 我希望我能,但< app>还没有和我说明。
Whenever i am giving any voice command it's saying "I wish I could, but < app > hasn't set that up with me yet."
我也尝试过启用Siri功能。让我知道我在那里做错了什么。
I have also tried by enabling Siri from capabilities. Let me know what I am doing wrong there.
谢谢。
推荐答案
最后我找到了根本原因,每当我添加 Intent Extension 时,默认部署目标设置为10.2(Xcode 8.2)。当我尝试使用iOS 10.1设备时,由于目标配置,Siri忽略了我的应用程序。这就是为什么我的应用程序没有显示在应用支持部分。
Finally I found the root cause, whenever I was adding the Intent Extension the default deployment target was set to 10.2(Xcode 8.2). And when I tried on iOS 10.1 device, Siri ignored my app due to that target configuration. That is why my app was not showing in App Support section.
请检查扩展目标的部署信息是否涵盖您的设备操作系统版本。
这篇关于Siri不在现有项目中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!