KevinGong2013 / Printer

Swift ticket printer framework for ESC/POS-compatible thermal printers.
Apache License 2.0
147 stars 73 forks source link

[CoreBluetooth] XPC connection invalid #19

Closed kpinkerman closed 5 years ago

kpinkerman commented 5 years ago

When presenting the PrinterTableViewController, I am getting an error: [CoreBluetooth] XPC connection invalid The code I am using is quite simple: let pm = PrinterManager() if !pm.canPrint { let vc = PrinterTableViewController() vc.sectionTitle = "Choose Printer" vc.printerManager = pm self.navigationController?.pushViewController(vc, animated: true) } Any suggestions for me to get this working? I can provide more information if needed.

kpinkerman commented 5 years ago

Needed to place the PrinterManger() declaration as a var in the root of the class. Working