我们可以在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

相关文章

当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple...
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只...
一般在接外包的时候, 通常第三方需要安装你的app进行测...
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应...