Thursday, 15 July 2010

ios7 - Gimbal Geofence monitoring crashing NSInvalidArgumentException -[NSURL initFileURLWithPath:] -



ios7 - Gimbal Geofence monitoring crashing NSInvalidArgumentException -[NSURL initFileURLWithPath:] -

after integrating gimbal fyx beacon discovery tried add together geofence monitoring well. i've follow guides closely , re-written code several times, ending same crash , error message:

* terminating app due uncaught exception 'nsinvalidargumentexception', reason: '* -[nsurl initfileurlwithpath:]: nil string parameter'

nowhere in code accessing files or creating nsobjects initwithcontentsoffile: methods!

my code:

[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]; } }];

turns out in contextlocation.framework there folder called "resources" , there datamodels.bundle file need check 'target membership' in right side panel of xcode. had checked frameworks guides suggested not resources folder.

ios7 geofencing gimbal

No comments:

Post a Comment