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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to