AccessorySetupKit Picker - ASErrorDomain

I'm trying to use the new AccessorySetupKit framework.

I copied more or less the sample code provided by Apple in the ASKSample project.

The very first action, namely displaying the picker fails with this error:

The operation couldn’t be completed. (ASErrorDomain error 550.)

I've looked in the documentation but it's quite empty till now. Could someone explain what is missing?

Thank you very much in advance!

ASErrorCodePickerRestricted = 550,

It will be hard to know why picker was restricted with any feedback with logs but app may already have Bluetooth Permission and have a CBCentralManager instance initialized. If that is the case, I would suggest to only instantiate CBCentralManager after ASAccessoryEventTypeAccessoryAdded is called on your eventHandler

Since, we are currently in Beta, documentation is still in process of being updated and this note will be added to it.

AccessorySetupKit Picker - ASErrorDomain
 
 
Q