EAAccessoryManager Crash when selecting accessory from picker while multiple accessories are present
The app crashes when using EAAccessoryManager.showBluetoothAccessoryPicker(withNameFilter:) to connect to a Bluetooth accessory in a multi-accessory scenario. The crash occurs immediately after selecting an accessory from the picker UI.
Steps to Reproduce:
Ensure a Bluetooth accessory (Accessory A) is already connected to the iPhone/iPad and is visible in Bluetooth settings.
Launch the app.
Initiate a connection flow that presents the Bluetooth accessory picker using EAAccessoryManager.showBluetoothAccessoryPicker(withNameFilter:).
Ensure another compatible accessory (Accessory B) is available and visible in the picker.
Select Accessory B from the picker to connect.
After connection, simulate a disconnect of Accessory B (e.g., power cycle or remove battery).
Attempt to reconnect Accessory B by triggering the same picker flow again.
Select Accessory B from the picker.
Result:
The accessory connects successfully at the system level.
The app crashes immediately after selecting the accessory from the picker (during dismissal).
Reproducibility:
Occurs consistently under the described multi-accessory scenario.
Not observed when only a single accessory is present.
3
0
59