<?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: Offline Routing in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300102#M2682</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muzammil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sending me the sample project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you were really close. The problem is that Xcode was not copying the Network_ND files to a .tn subfolder when building the target. Rather they were sitting at the top-level, right next to the .geodatabase file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, use the following code (pretty much your original code without .geodatabase in the name, but it's good practice that we check explicitly for an error):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSError&lt;/SPAN&gt;* error = &lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #d12f1b;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;AGSRouteTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"network_projected"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;network&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"Projected_Network_ND"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&amp;amp;error];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;if&lt;/SPAN&gt; (!error) {&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// assign delegate to this view controller&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;delegate&lt;/SPAN&gt; = &lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// kick off asynchronous method to retrieve default parameters&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// for the route task&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;retrieveDefaultRouteTaskParameters&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;} &lt;SPAN style="color: #bb2ca2;"&gt;else&lt;/SPAN&gt; {&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #d12f1b;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;NSLog&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;@"Could not open local network dataset: %@"&lt;SPAN style="color: #000000;"&gt;, error.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;localizedDescription&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Also, no need to set up parameters at this point since the didRetrieveDetrieveDefaultRouteTaskParameters handler will do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must now modify your target properties to specify where to copy the _ND files. See the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Create a new Copy Files build phase with the + button at the top of the Build Phases list:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1%20-%20New%20Copy%20Files%20Phase.jpg" class="jive-image image-1" src="http://f.cl.ly/items/3A421x0k0F0Y3o2d1y1T/1%20-%20New%20Copy%20Files%20Phase.jpg" style="width: 620px; height: 171px;" /&gt;&lt;/P&gt;&lt;P&gt;2: Expand the new Copy Files phase, set the subpath to a .tn folder (in your case, "network_projected.tn") and click the + at the bottom of the phase to add files:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2%20-%20Set%20Up%20Phase.jpg" class="jive-image image-2" src="http://cl.ly/image/3i0D3U392A03/2%20-%20Set%20Up%20Phase.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3: Add the files to the Copy Files phase:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3%20-%20Add%20Files%20to%20Phase.jpg" class="jive-image image-3" src="http://cl.ly/image/0X0q2k0Y2B23/3%20-%20Add%20Files%20to%20Phase.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It should end up looking like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4%20-%20Final%20Phase.jpg" class="image-4 jive-image" src="http://cl.ly/image/0T253q170V2C/4%20-%20Final%20Phase.jpg" style="width: 620px; height: 283px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run your project and you should see default parameters being retrieved OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that if you provide a database name that can't be found, no error is returned. That seems like a bug to me, which I've reported to the iOS team. Even without that, Xcode would have had to be configured as above, but it might have saved some confusion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. For anyone following along, please note that the network dataset name in this reply is slightly modified from the original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Feb 2015 15:59:05 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2015-02-20T15:59:05Z</dc:date>
    <item>
      <title>Offline Routing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300099#M2679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able to do offline routing with my network data. I am using latest ArcGIS SDK for iOS and developing in Objective C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 16px; font-family: Menlo; color: #00b1ff;"&gt;&lt;/P&gt;&lt;P&gt;Initializing routeTask as shown below. "&lt;SPAN style="color: #c91b13; font-family: Menlo; font-size: 13px;"&gt;network.geodatabase&lt;/SPAN&gt;" is the geodatabase included in the bundle. And "&lt;SPAN style="color: #c91b13; font-family: Menlo; font-size: 13px;"&gt;Network_ND"&lt;SPAN style="color: #303030; font-family: arial, helvetica, sans-serif;"&gt; is under .tn folder which also included in the bundle.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #c91b13;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #c32275;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;&lt;SPAN style="color: #6122ae;"&gt;AGSRouteTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"network"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;network&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"Network_ND"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&amp;amp;error];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// assign delegate to this view controller&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;delegate&lt;/SPAN&gt; = &lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #6122ae;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTaskParams&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;AGSRouteTaskParameters&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskParameters&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// kick off asynchronous method to retrieve default parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// for the route task&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;retrieveDefaultRouteTaskParameters&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get below error after requesting &lt;SPAN style="color: #3d1d81; font-family: Menlo; font-size: 13px;"&gt;retrieveDefaultRouteTaskParameters&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'arial black', 'avant garde';"&gt;Error Domain=com.esri.arcgis.runtime.error Code=10004 "Cannot retrieve route task parameters." UserInfo=0x7f8061529f40&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when I try to solve route after adding two points, I get below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #ffffff;"&gt;&lt;SPAN style="color: #303030; font-family: 'arial black', 'avant garde'; font-size: 10pt;"&gt;Error Domain=com.esri.arcgis.runtime.error Code=10004 "Route task internal error." UserInfo=0x7f80616ed380 {NSLocalizedDescription=Route task internal error.}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;But if I try by changing the code as shown below, I neither get any error nor any output. Neither the didSolveWithResult event is fired nor the didFailSolveWithError event.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #c91b13;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #c32275;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;&lt;SPAN style="color: #6122ae;"&gt;AGSRouteTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"&lt;SPAN style="color: #c91b13; font-family: Menlo; font-size: 13px;"&gt;network.geodatabase&lt;/SPAN&gt;"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;network&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"Network_ND"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&amp;amp;error];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// assign delegate to this view controller&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;delegate&lt;/SPAN&gt; = &lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #6122ae;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTaskParams&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;AGSRouteTaskParameters&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskParameters&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// kick off asynchronous method to retrieve default parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #1d9421;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// for the route task&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 18px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #c32275;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #539aa4;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;retrieveDefaultRouteTaskParameters&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please throw some pointers on how to solve this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Muzammil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2015 07:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300099#M2679</guid>
      <dc:creator>MuzammilAK</dc:creator>
      <dc:date>2015-02-17T07:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Routing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300100#M2680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/4545"&gt;Muzammil&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the folder is named network.tn, then that looks correct to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check whether error is populated with an error object after the call to routeTaskWithDatabaseName?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2015 19:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300100#M2680</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2015-02-18T19:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Routing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300101#M2681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Nick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. If the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt; is assigned as "network", then&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;After the call to routeTaskWithDatabaseName, the error object has following error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;error&lt;/TD&gt;&lt;TD&gt;NSError *&lt;/TD&gt;&lt;TD&gt;domain: @"com.esri.arcgis.runtime.error" - code: 10004&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;_userInfo&lt;/TD&gt;&lt;TD&gt;NSDictionary *&lt;/TD&gt;&lt;TD&gt;1 key/value pair&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;[0]&lt;/TD&gt;&lt;TD&gt;(null)&lt;/TD&gt;&lt;TD&gt;@"NSLocalizedDescription" : @"Cannot open network."&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;key&lt;/TD&gt;&lt;TD&gt;__NSCFConstantString *&lt;/TD&gt;&lt;TD&gt;@"NSLocalizedDescription"&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;value&lt;/TD&gt;&lt;TD&gt;__NSCFString *&lt;/TD&gt;&lt;TD&gt;@"Cannot open network."&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But if the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt; is assigned as "network.geodatabase", then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is no error, i.e., error object is nil. But routing does not work, though (neither success nor failed event is fired).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Muzammil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Feb 2015 06:25:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300101#M2681</guid>
      <dc:creator>MuzammilAK</dc:creator>
      <dc:date>2015-02-19T06:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Routing</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300102#M2682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Muzammil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sending me the sample project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, you were really close. The problem is that Xcode was not copying the Network_ND files to a .tn subfolder when building the target. Rather they were sitting at the top-level, right next to the .geodatabase file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, use the following code (pretty much your original code without .geodatabase in the name, but it's good practice that we check explicitly for an error):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #703daa;"&gt;NSError&lt;/SPAN&gt;* error = &lt;SPAN style="color: #bb2ca2;"&gt;nil&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #d12f1b;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; = [&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;AGSRouteTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;routeTaskWithDatabaseName&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"network_projected"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;network&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&lt;/SPAN&gt;@"Projected_Network_ND"&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;error&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;:&amp;amp;error];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&lt;SPAN style="color: #bb2ca2;"&gt;if&lt;/SPAN&gt; (!error) {&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// assign delegate to this view controller&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;.&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;.&lt;SPAN style="color: #703daa;"&gt;delegate&lt;/SPAN&gt; = &lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// kick off asynchronous method to retrieve default parameters&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #008400;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;// for the route task&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #3d1d81;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #bb2ca2;"&gt;self&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #4f8187;"&gt;routeTask&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;retrieveDefaultRouteTaskParameters&lt;SPAN style="color: #000000;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;} &lt;SPAN style="color: #bb2ca2;"&gt;else&lt;/SPAN&gt; {&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo; color: #d12f1b;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #3d1d81;"&gt;NSLog&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;@"Could not open local network dataset: %@"&lt;SPAN style="color: #000000;"&gt;, error.&lt;/SPAN&gt;&lt;SPAN style="color: #703daa;"&gt;localizedDescription&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 11px; font-family: Menlo;"&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5;"&gt;Also, no need to set up parameters at this point since the didRetrieveDetrieveDefaultRouteTaskParameters handler will do that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must now modify your target properties to specify where to copy the _ND files. See the following screenshots.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: Create a new Copy Files build phase with the + button at the top of the Build Phases list:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="1%20-%20New%20Copy%20Files%20Phase.jpg" class="jive-image image-1" src="http://f.cl.ly/items/3A421x0k0F0Y3o2d1y1T/1%20-%20New%20Copy%20Files%20Phase.jpg" style="width: 620px; height: 171px;" /&gt;&lt;/P&gt;&lt;P&gt;2: Expand the new Copy Files phase, set the subpath to a .tn folder (in your case, "network_projected.tn") and click the + at the bottom of the phase to add files:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2%20-%20Set%20Up%20Phase.jpg" class="jive-image image-2" src="http://cl.ly/image/3i0D3U392A03/2%20-%20Set%20Up%20Phase.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3: Add the files to the Copy Files phase:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="3%20-%20Add%20Files%20to%20Phase.jpg" class="jive-image image-3" src="http://cl.ly/image/0X0q2k0Y2B23/3%20-%20Add%20Files%20to%20Phase.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;It should end up looking like this:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="4%20-%20Final%20Phase.jpg" class="image-4 jive-image" src="http://cl.ly/image/0T253q170V2C/4%20-%20Final%20Phase.jpg" style="width: 620px; height: 283px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run your project and you should see default parameters being retrieved OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems that if you provide a database name that can't be found, no error is returned. That seems like a bug to me, which I've reported to the iOS team. Even without that, Xcode would have had to be configured as above, but it might have saved some confusion!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. For anyone following along, please note that the network dataset name in this reply is slightly modified from the original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Feb 2015 15:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/offline-routing/m-p/300102#M2682</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2015-02-20T15:59:05Z</dc:date>
    </item>
  </channel>
</rss>

