Ios7 万向节地理围栏监控崩溃NSInvalidArgumentException-[NSURL initFileURLWithPath:]

Ios7 万向节地理围栏监控崩溃NSInvalidArgumentException-[NSURL initFileURLWithPath:],ios7,geofencing,gimbal,Ios7,Geofencing,Gimbal,在集成Gimbal FYX信标发现后,我还尝试添加Geofence监控。我已经仔细阅读了指南,并多次重新编写代码,最后出现了相同的崩溃和错误消息: *由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“*-[NSURL initFileURLWithPath::nil字符串参数” 在我的代码中,没有任何地方可以从initWithContentsOfFile:methods访问任何文件或创建任何NSObject 我的代码: [connector enab

在集成Gimbal FYX信标发现后,我还尝试添加Geofence监控。我已经仔细阅读了指南,并多次重新编写代码,最后出现了相同的崩溃和错误消息:

*由于未捕获的异常“NSInvalidArgumentException”而终止应用程序,原因:“*-[NSURL initFileURLWithPath::nil字符串参数”

在我的代码中,没有任何地方可以从initWithContentsOfFile:methods访问任何文件或创建任何NSObject

我的代码:

[connector enableFromViewController:viewController success:^{
        NSLog(@"ContextCoreConnector ACTIVATED!");
        self.placeConnector = [[QLContextPlaceConnector alloc] init];
        self.placeConnector.delegate = self;

        [self.placeConnector monitorPlacesWhenAllowed];
        [self.placeConnector monitorPlacesInBackground];

        if ([self.geofenceDelegate respondsToSelector:@selector(startedGeofenceMonitoring)]) {
            [self.geofenceDelegate startedGeofenceMonitoring];
        }

    } failure:^(NSError *error) {
        NSLog(@"ContextCoreConnector FAILED!\n%@",error.localizedDescription);

        if ([self.geofenceDelegate respondsToSelector:@selector(startedGeofenceMonitoring)]) {
            [self.geofenceDelegate startedGeofenceMonitoring];
        }

    }];

在ContextLocation.framework中有一个名为“Resources”的文件夹,还有一个DataModels.bundle文件,您需要检查XCode右侧面板中的“目标成员身份”。我已经按照指南的建议检查了我的所有框架,但没有检查参考资料文件夹