Post

Replies

Boosts

Views

Activity

How to create EAAccessory instance?
I need to trigger accessory connected notification for testing purposes, for which I need to create an instance of EAAccessory class and send a fake accessory. How do I do that? I get this exception `EAAccessoryInitException`. *** Terminating app due to uncaught exception ‘EAAccessoryInitException’, reason: ‘-init not supported. EAAccessoryManager is responsible for creating all objects.’ Is there any other way to test this behavior?
4
0
2.2k
Dec ’18