iOS UUID deprecated corebluetooth

Cla*_*hea 7 uuid ios core-bluetooth deprecation-warning

I am modifying an app that discovers a device via Bluetooth BLE in order to plot the values into a graph. It all works fine (thanks to the help of one of you in the past week). The app was initially written by my husband a while ago and during the discovery of the device, he was using checking code like :

NSLog(@" Failed to Connect to Peripheral : %@   with UUID: %@   ", peripheral, peripheral.UUID);
Run Code Online (Sandbox Code Playgroud)

or

NSLog(@" Connected to Peripheral : %@   with UUID: %@   ", peripheral, peripheral.UUID);
Run Code Online (Sandbox Code Playgroud)

In front of each of these lines (and some more) I get the warning messages that UUID is deprecated: first deprecated in ios 7.0 Since quite a while, I try to find out by what it has been replaced, but on Google, it doesn't look like other people have the same problem and when I go to the Apple Documentation : here

there is no mention of it being deprecated.

I don't understand...

Could somebody please help ? Thanks

EDIT: ADDING SOME INFO

This is what I get on my computer on the console

enter image description here

Pau*_*w11 17

更新

我已经进行了双重检查,并且不推荐使用CBPeer上的UUID属性.

从Xcode中的文档我发现 -

弃用语句
改为使用identifier属性.

如果您使用peripheral.identifier.UUIDString,则不会收到弃用警告.

  • 现在`标识符'也被标记为折旧!https://developer.apple.com/library/prerelease/ios/documentation/CoreBluetooth/Reference/CBPeripheral_Class/index.html#//apple_ref/occ/instp/CBPeripheral/identifier (3认同)