Class does not conform to 'CBPeripheralManagerDelegate' in Swift
问题 I'm trying to build iBeacon emitter in Swift and I cannot get my class to adopt the CBPeripheralManagerDelegate protocol. This protocol is required in Objective-C for initializing the PeripheralManager object, but in Swift, I will get the following error: class MyBeacon: CBPeripheralManagerDelegate { // ... } gives error: 'MyBeacon' does not conform to 'CBPeripheralManagerDelegate' Since my class is not adopting the protocol, I also get an error when I try to initialize the PeripheralManager