NSString *gdbPath = [self gdbDocumentsPath]; NSError *error = nil; self.geodatabase = [[AGSGDBGeodatabase alloc] initWithPath:gdbPath error:&error]; if (error) { NSLog(@"error loading geodatabase: %@", [error localizedDescription]); }
libc++abi.dylib: terminating with uncaught exception of type Esri_runtimecore::Geodatabase::geodatabase_error: std::exception
Solved! Go to Solution.
When I was getting the error I was attempting to implement the offline geodatabase layer using the code in the guide section of the developer site. After taking a step back (and having a stiff drink) I realized I needed to be initializing the localFeatureTable as self.localFeatureTable... that cleared things up nicely.
Our iPads are now happily drawing a 13k polygon land ownership layer and making it look easy!
James,
The issue might be with 'FACILITYDIAGRAM' field in the feature class. This field is declared as 32 bit int, where as many of its subtypes have the default value of float. It might have happened if you typed 0.0 instead of 0 in one of the previous versions of the destop.
Can you try reassigning the default values in ArcCatalog and try creating the runtime package again?
Hope this helps!