<?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 Errors loading mobile map package.  iOS Swift SDK 200.0 beta in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241612#M1</link>
    <description>&lt;P&gt;I'm trying to load a mobile map package using the new Swift SDK version 200 (beta). &amp;nbsp;It appears to add the layers and tables but no map shows in map view.&lt;/P&gt;&lt;P&gt;I'm getting the following once, the first time I call addTable to my apps map:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error occurred: code: 24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error message: Object is already owned.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error additional message: Already owned.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error each time I call addOperationalLayer():&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error occurred: code: 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error message: Out of range.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error additional message: position is out of range.&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Dec 2022 17:12:42 GMT</pubDate>
    <dc:creator>DuanePfeiffer</dc:creator>
    <dc:date>2022-12-15T17:12:42Z</dc:date>
    <item>
      <title>Errors loading mobile map package.  iOS Swift SDK 200.0 beta</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241612#M1</link>
      <description>&lt;P&gt;I'm trying to load a mobile map package using the new Swift SDK version 200 (beta). &amp;nbsp;It appears to add the layers and tables but no map shows in map view.&lt;/P&gt;&lt;P&gt;I'm getting the following once, the first time I call addTable to my apps map:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error occurred: code: 24&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error message: Object is already owned.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error additional message: Already owned.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error each time I call addOperationalLayer():&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error occurred: code: 4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error message: Out of range.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;error additional message: position is out of range.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 17:12:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241612#M1</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2022-12-15T17:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Errors loading mobile map package.  iOS Swift SDK 200.0 beta</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241660#M2</link>
      <description>&lt;P&gt;Welcome to the new SDK Duane! Please take a look at the attached demo project and see if it helps. A few key points to be aware of:&lt;/P&gt;&lt;P&gt;- The `loadLocalMapPackage` method should be only called once when the view is created, so the objects aren't recreated when the view body is recalculated.&lt;/P&gt;&lt;P&gt;- Make sure the loadable resources are loaded before you use them.&lt;/P&gt;&lt;P&gt;- The operational layers owned by one map cannot directly used as a reference by another map. This is the same as the old 100.x Runtime SDK. To use the layers in another map, there are a few options to consider&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Create copies of the layers. See the demo project.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Create new layers from the backing tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Host the data on ArcGIS Portal as service feature tables.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; - Use mobile geodatabases instead of mobile map packages.&lt;/P&gt;&lt;P&gt;P.S. In case you aren't aware of, we also have a growing &lt;A href="https://github.com/ArcGIS/arcgis-maps-sdk-swift-samples" target="_self"&gt;Swift Samples project on GitHub&lt;/A&gt;. You can find common patterns and examples of the new API in it. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 18:27:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241660#M2</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2022-12-15T18:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Errors loading mobile map package.  iOS Swift SDK 200.0 beta</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241700#M3</link>
      <description>&lt;P&gt;Thank you! &amp;nbsp;I am able to see my map now. &amp;nbsp;Still struggling with the tables however. &amp;nbsp;Not sure how to create a copy; there is no clone() method.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 19:54:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241700#M3</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2022-12-15T19:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Errors loading mobile map package.  iOS Swift SDK 200.0 beta</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241738#M4</link>
      <description>&lt;P&gt;If it is possible, you can send me a desensitized copy of your mmpk and I can take a look. There are many types of `&lt;SPAN&gt;FeatureTable`s and while some of them are plain tabular data, some others are more complex, so there might be different ways of using tables from one map to another.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 21:04:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241738#M4</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2022-12-15T21:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Errors loading mobile map package.  iOS Swift SDK 200.0 beta</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241797#M5</link>
      <description>&lt;P&gt;Thankyou. &amp;nbsp;I might not need to copy those after all.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 23:05:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/errors-loading-mobile-map-package-ios-swift-sdk/m-p/1241797#M5</guid>
      <dc:creator>DuanePfeiffer</dc:creator>
      <dc:date>2022-12-15T23:05:36Z</dc:date>
    </item>
  </channel>
</rss>

