报错内容:
* Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘State restoration of CBCentralManager is only allowed for applications that have specified the “bluetooth-central” background mode’
解决方法:
在plist文件中添加蓝牙后台使用的模式
<key>UIBackgroundModes</key>
<array>
<string>bluetooth-central</string>
</array>
Required background modes 属性 即后台工作模式