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 !
The simulator does a really lousy job of indicating app performance. In fact it doesn't try. For most things the simulator is much, much faster than an iOS device. It runs your code on an x86 processor, which is much faster than the ARM and has many times more memory.
You would have to extract the Simulator pkg from the Xcode DMG. The only thing is that the Simulator depends on having an SDK installed, that way it knows which iOS to run the app in.
Testing SiriKit only works on a real iOS 10 Hardware Device and not in the iOS 10 Simulator.
When the user makes a request of Siri involving one of the App Extension's services, SiriKit sends the extension an Intent object that describes the user's request along with any supporting data. the App Extension then generates the appropriate Response object for the given Intent, detailing how the extension can handle the request.
This article covers the steps required to implement SiriKit support in the Xamarin.iOS apps by adding the required Intents Extensions, Intents UI Extensions and Vocabulary. Siri works with the concept of Domains, groups of know actions for related tasks.
If having issues installing a SiriKit enabled Xamarin.iOS app on real hardware, ensure that the required Entitlements, App ID, Signing Identifier and Provisioning Profile have been correctly configured in both Apple's Developer Portal and Visual Studio for Mac.
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 -
Step 2 -
Step 3 -
Step 4 -
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
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)
Yes update your XCode Version :8.3.1 and above support SIRI in simulator.
STEP-1 :
STEP-2 Enable SIRI from Settings in Simulator
STEP-3 Hardware--->SIRI
Apple docs say:
You cannot debug your Intents extension in the simulator.
Update: This has changed in Xcode 8.3.
Now You can use in Xcode 8.3.1
[PREVIOUS ANSWER]
According to the Apple Docs
No, you can't
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With