<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error: reading a geodatabase on a device in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12861#M175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nathan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This seems to be work for simulator, for iPad its giving error Domain=com.esri.arcgis.runtime.error code=12 "automatic extension loading failed:"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 12:51:06 GMT</pubDate>
    <dc:creator>VIKRANTKRISHNA</dc:creator>
    <dc:date>2014-06-24T12:51:06Z</dc:date>
    <item>
      <title>Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12852#M166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But on my "real" ipad I'm getting the following error message when creating the AGSGDBGeodatabase object:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error Domain=com.esri.arcgis.runtime.error Code=6 "PRAGMA journal_mode = WAL;" UserInfo=0x170264bc0 {NSLocalizedDescription=PRAGMA journal_mode = WAL;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the code snippet for loading the geodatabase file (ltg.geodatabase):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NSString *gdbPath = [[NSBundle mainBundle] pathForResource:@"ltg" ofType:@"geodatabase"];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; NSError* myerror;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:gdbPath&amp;nbsp; error:&amp;amp;myerror];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas or solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 09:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12852#M166</guid>
      <dc:creator>TorstenStruck</dc:creator>
      <dc:date>2014-03-25T09:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12853#M167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for reporting. This seems to be an issue in the SDK. We'll work on fixing it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A work around for it is to use iTunes File Sharing and share the geodatabase through it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To enable file sharing in your app, set the property "Application supports iTunes file sharing" to YES in Info.plist file. Then you should be able to add the geodatabase as described &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://support.apple.com/kb/ht4094" rel="nofollow" target="_blank"&gt;here&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can then create the geodatabase as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *gdbPath = [paths objectAtIndex:0]; gdbPath = [gdbPath stringByAppendingPathComponent:@"ltg.geodatabase"]; if ([[NSFileManager defaultManager] fileExistsAtPath:gdbPath]) {&amp;nbsp; &amp;nbsp; //create GDB here }&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps, please let us know if you have more questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 20:00:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12853#M167</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2014-03-25T20:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12854#M168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I bundled my geodatabase with my app. When my app started I copied the geodatabase from the app bundle to the app's Documents folder and then created the gdb from the copy in the Documents.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 22:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12854#M168</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2014-03-25T22:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12855#M169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you! That worked fine!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks for reporting. This seems to be an issue in the SDK. We'll work on fixing it. &lt;BR /&gt;&lt;BR /&gt;A work around for it is to use iTunes File Sharing and share the geodatabase through it. &lt;BR /&gt;To enable file sharing in your app, set the property "Application supports iTunes file sharing" to YES in Info.plist file. Then you should be able to add the geodatabase as described &lt;A href="http://support.apple.com/kb/ht4094" rel="nofollow noopener noreferrer" target="_blank"&gt;here&lt;/A&gt; &lt;BR /&gt;&lt;BR /&gt;You can then create the geodatabase as follows:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *gdbPath = [paths objectAtIndex:0];
gdbPath = [gdbPath stringByAppendingPathComponent:@"ltg.geodatabase"];
if ([[NSFileManager defaultManager] fileExistsAtPath:gdbPath]) {

&amp;nbsp; //create GDB here
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps, please let us know if you have more questions.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:32:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12855#M169</guid>
      <dc:creator>TorstenStruck</dc:creator>
      <dc:date>2021-12-10T20:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12856#M170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which file type got worked .gdb or .geodatabase?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are also facing same problem i.e unable to read data from .gdb file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How we have to add it : locally in app or in documents directory?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you help with the steps how it got worked for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sweety&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Apr 2014 07:49:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12856#M170</guid>
      <dc:creator>SweetySingh</dc:creator>
      <dc:date>2014-04-04T07:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12857#M171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it is .geodatabase file.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Apr 2014 19:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12857#M171</guid>
      <dc:creator>SivaVysyaraju</dc:creator>
      <dc:date>2014-04-08T19:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12858#M172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Which file type got worked .gdb or .geodatabase?&lt;BR /&gt;We are also facing same problem i.e unable to read data from .gdb file.&lt;BR /&gt;&lt;BR /&gt;How we have to add it : locally in app or in documents directory?&lt;BR /&gt;&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's the .geodatabase file. Are you creating the file as outlined &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00660000045q000000"&gt;here&lt;/A&gt;&lt;SPAN&gt; ? This gives a .geodatabase file which you can add to the app through &lt;/SPAN&gt;&lt;A href="http://support.apple.com/kb/ht4094"&gt;file sharing&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Apr 2014 19:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12858#M172</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2014-04-17T19:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12859#M173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to package a demo geodataset along with app. How can I make this work, having geodatabase as part of project doesn't seems to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 20:08:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12859#M173</guid>
      <dc:creator>VIKRANTKRISHNA</dc:creator>
      <dc:date>2014-06-23T20:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12860#M174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Vikrant,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use this line to load the local geodatabase:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]NSString *gdbPath = [[NSBundle mainBundle]pathForResource:@"gdb_file_name" ofType:@"geodatabase"];[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is a generic way about how to load a file from Resources folder in iOS:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.android-ios-tutorials.com/257/read-files-in-resources-folder-ios/"&gt;http://www.android-ios-tutorials.com/257/read-files-in-resources-folder-ios/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this can help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 21:43:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12860#M174</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2014-06-23T21:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12861#M175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nathan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This seems to be work for simulator, for iPad its giving error Domain=com.esri.arcgis.runtime.error code=12 "automatic extension loading failed:"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 12:51:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12861#M175</guid>
      <dc:creator>VIKRANTKRISHNA</dc:creator>
      <dc:date>2014-06-24T12:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: reading a geodatabase on a device</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12862#M176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Nathan,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This seems to be work for simulator, for iPad its giving error Domain=com.esri.arcgis.runtime.error code=12 "automatic extension loading failed:"&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Vikrant, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;At present, the SDK does not support opening geodatabase from bundle in device for those geodatabases created from REST services. (Geodatabase created as "Runtime Content" from ArcMap should work fine) Hence the error. In this case, the geo database has to be in the documents directory. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've outlined a work around in my previous reply where you can add the geodatabase through iTunes File Sharing. Does that work for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suganya&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 20:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/error-reading-a-geodatabase-on-a-device/m-p/12862#M176</guid>
      <dc:creator>SuganyaBaskaran1</dc:creator>
      <dc:date>2014-06-24T20:45:33Z</dc:date>
    </item>
  </channel>
</rss>

