<?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 iOS Load TPK from Shared Container in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44822#M406</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 apps that are trying to share the same TPK offline base map.&amp;nbsp; I have App Groups enabled in xCode and have the TPK file stored in the shared container but it does not seem to work when referencing the file with AGSLocalTiledLayer.&amp;nbsp; I am using ArcGIS RUntime SDK for iOS 10.2.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message I see says "Cache at path '(null)' not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to have a TPK file stored in the shared container and referenced by multiple apps?&amp;nbsp; The reason we are looking to do this is that our basemap is around 1GB and we don't want to have to bundle it into multiple apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Oct 2016 17:24:10 GMT</pubDate>
    <dc:creator>NathanWorcester</dc:creator>
    <dc:date>2016-10-11T17:24:10Z</dc:date>
    <item>
      <title>iOS Load TPK from Shared Container</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44822#M406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 apps that are trying to share the same TPK offline base map.&amp;nbsp; I have App Groups enabled in xCode and have the TPK file stored in the shared container but it does not seem to work when referencing the file with AGSLocalTiledLayer.&amp;nbsp; I am using ArcGIS RUntime SDK for iOS 10.2.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error message I see says "Cache at path '(null)' not found"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know if it is possible to have a TPK file stored in the shared container and referenced by multiple apps?&amp;nbsp; The reason we are looking to do this is that our basemap is around 1GB and we don't want to have to bundle it into multiple apps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2016 17:24:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44822#M406</guid>
      <dc:creator>NathanWorcester</dc:creator>
      <dc:date>2016-10-11T17:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Load TPK from Shared Container</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44823#M407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm very curious to know if this is possible - our current solution is to just buy really big iPads &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2016 00:31:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44823#M407</guid>
      <dc:creator>MichaelDavis3</dc:creator>
      <dc:date>2016-10-12T00:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Load TPK from Shared Container</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44824#M408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it is!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 21:32:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44824#M408</guid>
      <dc:creator>JohnCovele</dc:creator>
      <dc:date>2016-11-11T21:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: iOS Load TPK from Shared Container</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44825#M409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From code perspective, I think this can be done as along as you pass the right path of the tpk.&lt;/P&gt;&lt;P&gt;Try to download this sample shows how to access tpk file using path:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.dropbox.com/s/f7q403wu1cty06v/LocalTiledLayer-Swift.zip?dl=0" title="https://www.dropbox.com/s/f7q403wu1cty06v/LocalTiledLayer-Swift.zip?dl=0" rel="nofollow noopener noreferrer" target="_blank"&gt;Dropbox - LocalTiledLayer-Swift.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, try this two line of code to load a file from your Documents directory, for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt; let path &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/Users/goldenlimit/Documents/iOS/Case/LocalTiledLayer-Swift/"&lt;/SPAN&gt;
 let tpkpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;path as NSString&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;stringByAppendingPathComponent&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SanFrancisco.tpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/ios-load-tpk-from-shared-container/m-p/44825#M409</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2021-12-10T21:43:22Z</dc:date>
    </item>
  </channel>
</rss>

