AnsweredAssumed Answered

Error: reading a geodatabase on a device

Question asked by tstruck on Mar 25, 2014
Latest reply on Jun 24, 2014 by SBaskaran-esristaff
Hi,

I'm coding a small application (with SDK for iOS 10.2.2) for displaying an offline geodatabase that I have created with ArcGIS for Desktop 10.2.1. I have put the geodatabase into my application bundle and everything looks good on the xcode ipad simulator.
But on my "real" ipad I'm getting the following error message when creating the AGSGDBGeodatabase object:

Error Domain=com.esri.arcgis.runtime.error Code=6 "PRAGMA journal_mode = WAL;" UserInfo=0x170264bc0 {NSLocalizedDescription=PRAGMA journal_mode = WAL;}

Here's the code snippet for loading the geodatabase file (ltg.geodatabase):

   NSString *gdbPath = [[NSBundle mainBundle] pathForResource:@"ltg" ofType:@"geodatabase"];
   NSError* myerror;
   AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:gdbPath  error:&myerror];

Any ideas or solutions?

Thank you!

Outcomes