Method not getting called

I am trying to use the TTLock SDK in the app I am making.
The documentation on their site says that the method onFoundDevice_withPeripheral will be executed after calling startBTDeviceScan.

However, in my code, the method is not getting called.
Any help on what I am doing wrong might help.

hi @felix696,
the initialization of Core Bluetooth framework is not properly , initialize it first that would solve your error.