我们可以在IOS模拟器中测试SIRIKit扩展:

我正在尝试使用sirikit开发应用程序扩展,但是当我尝试在模拟器 iphone 7plus上运行它时,它会给出以下错误: –

SpringBoard无法为请求提供服务.

任何人都可以告诉我IOS模拟器是否支持SIRIKit扩展!

解决方法

编辑

对于Xcode 8.3或更高版本,您将能够在模拟器中使用Siri.步骤是 –

1)从Simulator的设置启用Siri.

2)从硬件中选择Siri

以下是一些供参考的图片 –

步骤1 –

第2步 –

第3步 –

第4步 –

过时的答案

不,你不能在模拟器中做到这一点

检查一下

To run and debug your Intents extension on a device Select the build
scheme for your Intents extension. When you add an Intents extension
to your project,Xcode automatically creates a build scheme for
running that extension. Configure the scheme to run on an attached
device. You cannot debug your Intents extension in the simulator.
Select Product > Run to launch your extension on the device. When
prompted by Xcode,select Siri (or Maps) as the app to run. Xcode
builds your app and extension,installs them on the device,and
launches the app you selected.

参考 – here

相关文章

UITabBarController 是 iOS 中用于管理和显示选项卡界面的一...
UITableView的重用机制避免了频繁创建和销毁单元格的开销,使...
Objective-C中,类的实例变量(instance variables)和属性(...
从内存管理的角度来看,block可以作为方法的传入参数是因为b...
WKWebView 是 iOS 开发中用于显示网页内容的组件,它是在 iO...
OC中常用的多线程编程技术: 1. NSThread NSThread是Objecti...