我已经从https://github.com/smartface/Sample-Projects/tree/master/iBeacon下载了示例应用程序,并按照http://www.smartface.io/developer/guides/advanced/ibeacon/#broadcasting上的教程进行操作
当我单击 Smartface 配套应用程序中的“监控信标”按钮时,它就会崩溃。当我在 Mac 上的 xcode 项目中运行它时,也会发生同样的情况。
这是它崩溃的地方SMF.Bluetooth.BLE.startMonitoringForRegion
。
xcode 中的错误:exc bad access code 1
iPhone 5,版本:7.1.2 (11d257)
有人以前遇到过这个问题并知道解决方案吗?
var beaconRegion = new SMF.Bluetooth.BLE.BeaconRegion({
proximityUUID : "B9407F30-F5F8-466E-AFF9-25556B57FE6D",
identifier : "io.smartface.beaconapp",
major : 1,
minor : 1
});
**SMF.Bluetooth.BLE.startMonitoringForRegion({**
region : beaconRegion,
onEnterRegion : function (e) {
alert("Enter region: " + JSON.stringify(e));
SMF.Bluetooth.BLE.startRangingBeaconsInRegion(beaconRegion);
},