15

I am trying to develop an app extension using sirikit, but when i am trying to run it on simulator iphone 7plus, it is giving the following error :-

SpringBoard was unable to service the request.

Can anyone please tell me whether IOS Simulator support SIRIKit extension or not !

Ravindra Shekhawat
  • 4,275
  • 1
  • 19
  • 26
shubham mishra
  • 971
  • 1
  • 13
  • 32

6 Answers6

19

Edit

For Xcode 8.3 or above you will be able to use Siri in Simulator. The steps are -

1) Enable Siri from the settings of Simulator.

2) From the Hardware select Siri

Here are some images for reference -

Step 1 -

enter image description here

Step 2 -

enter image description here

Step 3 -

enter image description here

Step 4 -

enter image description here

Outdated Answer

No you can't do that in Simulator

Check this

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.

Reference - here

Rajat
  • 10,977
  • 3
  • 38
  • 55
8

In Xcode 9 you can test Siri tasks by UI Tests. They talk about it in the end of this WWDC session. Basically it looks kinda like this:

    let siri = XCUIDevice.shared.siriService
    siri.activate(voiceRecognitionText: "How many points are on my credit card?")
    let predicate = NSPredicate {(_, _) -> Bool in
        sleep(5)
        return true
    }

    let siriResponse = expectation(for: predicate, evaluatedWith: siri, handler: nil)
    self.wait(for: [siriResponse], timeout: 10)
ilyailya
  • 318
  • 4
  • 17
6

Yes update your XCode Version :8.3.1 and above support SIRI in simulator.

STEP-1 :

enter image description here

STEP-2 Enable SIRI from Settings in Simulator

STEP-3 Hardware--->SIRI

enter image description here

Ravindra Shekhawat
  • 4,275
  • 1
  • 19
  • 26
  • had to download a preview version of XCode 8.3.2 see https://itunes.apple.com/us/app/xcode/id497799835?ls=1&mt=12 – aginsburg Apr 20 '17 at 22:22
3

Apple docs say:

You cannot debug your Intents extension in the simulator.

Update: This has changed in Xcode 8.3.

clemens
  • 16,716
  • 11
  • 50
  • 65
  • Adding URL to the Doc: https://developer.apple.com/library/content/documentation/Intents/Conceptual/SiriIntegrationGuide/CreatingtheIntentsExtension.html – tush4r Nov 21 '16 at 06:18
  • 1
    Oh I am sorry, didn't notice it over there. – tush4r Nov 21 '16 at 06:21
2

Now You can use in Xcode 8.3.1

[PREVIOUS ANSWER]

According to the Apple Docs

No, you can't

Muhammad Raza
  • 952
  • 7
  • 24
0

Starting from Xcode 8.3 you can invoke Siri using Hardware > Siri after enabling Siri in the Settings app on Simulator.

sash
  • 8,423
  • 5
  • 63
  • 74