MFI Device Picker not displaying
MFI Device Picker not displaying
- Subject: MFI Device Picker not displaying
- From: "Eric E. Dolecki via Cocoa-dev" <email@hidden>
- Date: Tue, 11 Feb 2020 10:46:28 -0500
I have a device with an MFI chip in it, I have my project set up with the
supported external accessory protocol strings, and I want to pull up the
MFI device picker just to prove to myself that my app can see my device.
This code runs, prints to the console, but I get a strange error.
if btManager!.state == .poweredOn {
print("Show MFI device picker.")
EAAccessoryManager.shared().showBluetoothAccessoryPicker(withNameFilter:
nil) { (error) in
if error != nil {
print(error!.localizedDescription)
switch error! {
case EABluetoothAccessoryPickerError.alreadyConnected:
print("already connected.")
break
default:
break
}
}
}
}
Console:
*Show MFI device picker.*
*A constraint factory method was passed a nil layout anchor. This is not
allowed, and may cause confusing exceptions. Break on BOOL
_NSLayoutConstraintToNilAnchor(void) to debug. This will be logged only
once. This may break in the future.*
I am assuming this is why I see no picker displayed. I am curious why I
might be seeing this. Not exactly sure how to fix it - I do a symbolic
breakpoint the break on _NSLayoutConstraintToNilAnchor (Module: UIKit).
Doesn't break on anything. Change the module to Foundation, it does break.
Seemingly on this line:
*class AppDelegate: UIResponder, UIApplicationDelegate {*
Any insight would be appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden