THe promises provided here are not-sensible. You should use a full delegate pattern for CoreBluetooth, one shot listening for connectivity is not wise since the accessory may disconnect at any time.
This project adds promises to Apple’s CoreBluetooth framework.
pod "PromiseKit/CoreBluetooth" ~> 6.0
The extensions are built into PromiseKit.framework
thus nothing else is needed.
github "PromiseKit/CoreBluetooth" ~> 3.0
The extensions are built into their own framework:
// swift
import PromiseKit
import PMKCoreBluetooth
// objc
@import PromiseKit;
@import PMKCoreBluetooth;