name to be displayed
name to be displayed

Reputation: 53

Cannot find protocol declarations in project-swift.h

I am trying to build my project but am getting these errors:

Cannot find protocol declaration for 'CBCentralManagerDelegate'; did you mean 'CLLocationManagerDelegate'?```

Cannot find protocol declaration for 'CBPeripheralDelegate'```

on this code in my Project-Swift.h file

@class CBService;
@class CBCharacteristic;

@interface KestrelDeviceConnect (SWIFT_EXTENSION(FieldView)) <CBCentralManagerDelegate, CBPeripheralDelegate>

Anyone know what the issue is and how to solve it?

Upvotes: 0

Views: 705

Answers (1)

name to be displayed
name to be displayed

Reputation: 53

seems like I needed to enter this line of code in the Project-Bridging-Header.h

#import <CoreBluetooth/CoreBluetooth.h>

Upvotes: 4

Related Questions