//启动室内定位 -(void)startIndoor { if (self.indoor==nil) { self.indoor = [[IndoorLocation alloc]initWithDelegate:self]; //获取定位实例 self.indoor.buildingId = @"室内建筑物POIID"; //设置当前的建筑物,如果不指定建筑物,程序需要先访问网络确定当前建筑物,因此在网络不通时不能定位 [self.indoor.beacons addObject"蓝牙Beacon的UUID"];//添加蓝牙Beacon的UUID,定位程序只会扫描指定UUID的蓝牙Beacon [self.indoor.beacons addObject"蓝牙Beacon的UUID"]; [self.indoor startLocation]; //开始定位 } } 每次实例化self.indoor = [[IndoorLocation alloc]initWithDelegate:self]; //获取定位实例的时候就会出现报错,错误内容为: ld: warning: ignoring file /Users/i-feng/Desktop/ProjectA/IndoorLocation.framework/IndoorLocation, missing required architecture x86_64 in file /Users/i-feng/Desktop/ProjectA/IndoorLocation.framework/IndoorLocation (2 slices) Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_IndoorLocation", referenced from: objc-class-ref in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)
|