Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can we test SIRIKit extensions in IOS Simulator :

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 !

like image 202
shubham mishra Avatar asked Nov 21 '16 06:11

shubham mishra


People also ask

Does iOS simulator simulate performance?

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.

Can we run iOS simulator without Xcode?

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.

Can I test Sirikit in the iOS 10 simulator?

Testing SiriKit only works on a real iOS 10 Hardware Device and not in the iOS 10 Simulator.

How does the Sirikit app extension handle Sirikit requests?

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.

How do I implement Sirikit support in Xamarin iOS apps?

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.

Why can't I install a Sirikit enabled app on real hardware?

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.


5 Answers

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

like image 175
Rajat Avatar answered Oct 12 '22 23:10

Rajat


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)
like image 23
ilyailya Avatar answered Oct 13 '22 01:10

ilyailya


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

like image 37
Ravindra Shekhawat Avatar answered Oct 13 '22 01:10

Ravindra Shekhawat


Apple docs say:

You cannot debug your Intents extension in the simulator.

Update: This has changed in Xcode 8.3.

like image 41
clemens Avatar answered Oct 13 '22 01:10

clemens


Now You can use in Xcode 8.3.1

[PREVIOUS ANSWER]

According to the Apple Docs

No, you can't

like image 38
Muhammad Raza Avatar answered Oct 13 '22 01:10

Muhammad Raza