I can\'t find any official way to get a UUID string back out of a CBUUID. These UUIDs can be 2 or 16 bytes long.
The goal is to store CBUUIDs in a file somewhere as
There is native method in objective C and Swift and it is quite straight forward method.
NSString *str = characteristic.UUID.UUIDstring;
Same thing with Swift language Link to library-> https://developer.apple.com/documentation/corebluetooth/cbuuid/1518742-uuidstring?language=objc