Ios8 IOS 8:在CoreLocation中访问

Ios8 IOS 8:在CoreLocation中访问,ios8,core-location,Ios8,Core Location,我试图在我的应用程序中使用新的CLVisit功能来监控用户的访问,我跟踪了WWDC-14视频并实现了每一件事,但是locationManager:didVisit根本没有打电话。我设置了NSLocationAlwaysUsageDescription键,在Capabilities中启用“位置更新”后台模式,并在我的类的ViewDidLoad中包括以下内容: _locationManager = [[CLLocationManager alloc] init]; _locationManager.

我试图在我的应用程序中使用新的CLVisit功能来监控用户的访问,我跟踪了WWDC-14视频并实现了每一件事,但是locationManager:didVisit根本没有打电话。我设置了NSLocationAlwaysUsageDescription键,在Capabilities中启用“位置更新”后台模式,并在我的类的ViewDidLoad中包括以下内容:

_locationManager = [[CLLocationManager alloc] init];
_locationManager.delegate = self;
[_locationManager requestAlwaysAuthorization];
[_locationManager startMonitoringVisits];
没有关于在特定地点停留参观所需的最小时间的文件,也没有关于地点之间距离的任何文件。 我试着用GPX文件在大楼里测试它,在不同的地方呆了10分钟以上,但是locationManager:DidVisite代表没有被解雇


请帮助我,如何测试CLVisits,或者如果我在代码中遗漏了任何内容。

我一直在使用此代码测试CLVisits,它可以完美地监控我的一天