When I use [CBUUID UUIDWithString:@"xxx"]
, something like that the invalid uuid string, the app will crash.
How to check if the param is a valid UUID-format.
The error is:
Assertion failure in -[CBUUID initWithString:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/MobileBluetoothFramework/MobileBluetooth-115.5.1/CoreBluetooth/CoreBluetooth/CBUUID.m:149
I can't understand why the assertion happens on release version. Maybe Apple forget to turn off assertion switch.