Post

Replies

Boosts

Views

Activity

showBluetoothAccessoryPicker doesn't work
let filter = NSPredicate(format: "self == %@", name) DispatchQueue.main.sync { EAAccessoryManager.shared().showBluetoothAccessoryPicker(withNameFilter: filter) {[weak self] error in guard let self = self else { return } if let error = error { switch error { case EABluetoothAccessoryPickerError.resultCancelled: break case EABluetoothAccessoryPickerError.alreadyConnected: break case EABluetoothAccessoryPickerError.resultFailed: break case EABluetoothAccessoryPickerError.resultNotFound: break default: break } return } } } The first call works fine. If you try to reconnect after disconnecting the Bluetooth connection, the following error appears and the Picker is not visible. The switch statement that handles errors also doesn't work at all. [lifecycle] [u 2E51A6AB-2B5A-4E51-AF42-354CC66454BC:m (null)] [com.apple.CoreBluetoothUI.BTDevicePickerUI(1.0)] Connection to plugin interrupted while in use. [lifecycle] [u 2E51A6AB-2B5A-4E51-AF42-354CC66454BC:m (null)] [com.apple.CoreBluetoothUI.BTDevicePickerUI(1.0)] Connection to plugin invalidated while in use. Is there any way to solve it?
0
0
960
Nov ’22
How can I change app name?
I've tried the various methods listed in the forums, but it doesn't work so I ask a question Here's how I tried:Build Settings Change "Product Name" TARGETS Select app Change "Display Name" Project Navigator Select project name Double-click Change "project name" Rename Mange Scheme Change "Scheme name" info.plist Change "Bundle Display Name" After doing the above 4 methods, Clean Build and install the app on the device. Is there any other way? The app is released on the App store.
5
1
54k
Mar ’21