startAprilBeaconsDiscovery后闪退

我想用ABBluetoothManager去扫描附近的AprilBeacon, 执行扫描后闪退了,闪退原因如下:
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: '-[_NSInlineData AES128DecryptWithKey:]: unrecognized selector sent to instance 0x174229c20’
这个闪退还会导致xcode直接退出,我看demo用这个方法是好的,但比较了代码的调用后,没找到异常的地方

在你target的Building Settings的Other Linker Flags 的设置里加上 -all_load

正解,搞定