hi , 我使用
AprilBeaconDemo
我想要讀取mac address , 但是點進去"Ranging by bluetooth"會閃退?
log訊息擷取如下 , 請問要如何排除?
2019-12-10 22:23:06.991217+0800 AprilBeaconDemo[575:95552] *** Assertion failure in -[CBPeripheral writeValue:forCharacteristic:type:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/MobileBluetoothFramework/MobileBluetooth-130.88.1.3.3/CoreBluetooth/CoreBluetooth/CBPeripheral.m:441
2019-12-10 22:23:06.991996+0800 AprilBeaconDemo[575:95552] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Invalid parameter not satisfying: characteristic != nil’
*** First throw call stack:
(0x18bd9498c 0x18babd0a4 0x18bc96d1c 0x18c0cc8f4 0x19f576064 0x1024648f8 0x102463c98 0x19f5783c0 0x19f578520 0x19f574978 0x19f56f454 0x19f589818 0x19f580680 0x102d05828 0x102d06c04 0x102d0db74 0x102d0e744 0x102d14ad4 0x18bd123c4 0x18bd0d3b8 0x18bd0c8bc 0x195b78328 0x18fda26d4 0x10243c45c 0x18bb97460)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)