Search code examples
iosobjective-ccore-bluetoothios10external-accessory

CoreBluetooth and External Accessory not working in iOS10


I am using external hardware device using Bluetooth i getting this error and I am unable to get the permission of Bluetooth it is working until iOS9 but I don't no why this change affect in iOS10 ?

Error :

[CoreBluetooth] API MISUSE: has no restore identifier but the delegate implements the centralManager:willRestoreState: method. Restoring will not be supported

2016-09-17 Couldn't find the "com.apple.private.externalaccessory.showallaccessories" entitlement

enter image description here

Update :

I have seen this bug here https://forums.developer.apple.com/thread/61646


Solution

  • I had to whitelist all accessories, that I was planing to use in my application. It is done by adding 'protocol names' for each accessory to the info.plist. search for needed array type key for text 'Supported external accessory protocols' or add by key 'UISupportedExternalAccessoryProtocols'.

    Once this is done, you should stop receiving this issue.