Connecting to a bluetooth device

I’m working with MBS to build a plugin for a bluetooth device.
I’m able to load the plugin but I’m confused about what entitlements or capabilities etc I need to configure.
When I switch on the Wireless Accessory capability I can no longer copy the built app to my phone through Xcode. If I delete it I can again.

Also I see no specific way to specify that I’ll be using bluetooth.

Any help?

Check the provisioning profile at apple’s dev center. You may need to turn something on there too.

Right. I will look.