Isssue 1:
我跟踪本“估计教程”来创建我自己的Estimote应用程序。然而,出现了这个错误:
未知类型名称“ESTBeaconRegion”;您的意思是“CLBeaconRegion”吗?
如何解决这个问题?
我已经包括了标题和代表
#import <EstimoteSDK/EstimoteSDK.h>
@interface AppDelegate () <UIApplicationDelegate,CLLocationManagerDelegate,ESTBeaconManagerDelegate>这是我的podFile
# Uncomment this line to define a global platform for your project
platform :ios, '7.0'
target 'Tabster' do
pod 'EstimoteSDK', '3.1.0'
end第2期:为什么该框架以红色突出显示?

更新:(试用Juan推荐的示例应用程序)

发布于 2015-04-16 15:05:24
如果您想使用新的estimote SDK 3.0中的“旧应用程序”,我建议您在此处阅读迁移指南:
ESTBeaconManager
ESTBeaconManager类保持不变,但功能缩小。在目前的形式中,它负责iBeacon设备的测距和监视,以及iBeacon的广告。它主要涵盖CoreLocation功能,但是有一些有用的帮助工具,包括preventUnknownUpdateCount、avoidUnknownStateBeacons和returnAllRangedBeaconsAtOnce (在早期版本的Estimote中已经有了)。
委托方法使用CLBeacon对象(而不是ESTBeacon)和CLBeaconRegion (而不是ESTBeaconRegion)。让我们以ranging委托为例:
SDK2.4语法:
- (void)beaconManager:(ESTBeaconManager *)manager
didRangeBeacons:(NSArray *)beacons
inRegion:(ESTBeaconRegion *)region
{
if (beacons.count > 0)
{
ESTBeacon *firstBeacon = [beacons objectAtIndex:0];
}
}SDK3.0语法:
- (void)beaconManager:(id)manager
didRangeBeacons:(NSArray *)beacons
inRegion:(CLBeaconRegion *)region
{
if (beacons.count > 0)
{
CLBeacon *firstBeacon = [beacons objectAtIndex:0];
}
}我希望这会对你有帮助。
发布于 2015-04-15 02:58:01
我在使用Estimote库时也遇到过同样的问题。由于一个未知的原因,如果您试图在一个新的Xcode项目中包含SDK库,它似乎不会加载它。即使您使用CoreLocation和CoreBluetooth头。
我建议您使用示例代码,以便有一个项目,包括libaries,然后开始修改它。
发布于 2015-04-15 06:54:29
从这里下载代码,不要尝试从pod文件导出代码,而可以直接使用从您下载的iOS文件导出的示例xcode项目。如果你遇到同样的问题,就试一次。
https://stackoverflow.com/questions/29640779
复制相似问题