AprilBeaconDemo "Ranging by bluetooth" 閃退

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)

请问你的iOS版本是? Xcode版本?

我這邊環境是 Version 10.3(XCODE) , IOS=13.1.3

請問你們有新版demo sdk可以提供嗎?

哈囉 , 是否可盡快處理ios問題呢?我們急需跟硬件整合

请问你使用Ranging by bluetooth demo ,后续会希望修改beacon的参数吗?我们今天测试这个demo没有退的

尝试添加breakpoint看看具体哪一行导致闪退

呼叫此行 [self.beacon connectToBeacon];就閃退了

如果你只是读mac地址而不用修改的话,可以用CoreBluetooth直接读取Device Information这个service,其中system ID既是mac地址。你可以使用iOS的LightBlue.app先查看这个信息。

对于新的N系列beacon来说,我们的sdk暂时没有做适配。