<?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 Application crashing on trying to add map layer from ArcGISServer online in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crashing-on-trying-to-add-map-layer/m-p/48619#M441</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;SPAN&gt;I am new to this iOS programming. I have worked with some applications without map. They works fine. But I just started adding a map layer from ArcGISServerOnline following their examples. But my application in the simulator 4.2 crashes with the message "Program received signal SIGABRT" (on debugging) when executing the line marked red below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)viewDidLoad {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // ----- US highways from ESRI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; NSURL *url = [NSURL URLWithString: @"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer&lt;/A&gt;&lt;SPAN&gt;"]; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //It crashes on executing the line below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSDynamicMapServiceLayer *highwayLayer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: url];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView addMapLayer:highwayLayer withName:@"US Highways"]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [super viewDidLoad];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will really appreciate if somebody figures out the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Feb 2011 17:23:16 GMT</pubDate>
    <dc:creator>SumanChatterjee</dc:creator>
    <dc:date>2011-02-05T17:23:16Z</dc:date>
    <item>
      <title>Application crashing on trying to add map layer from ArcGISServer online</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crashing-on-trying-to-add-map-layer/m-p/48619#M441</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;SPAN&gt;I am new to this iOS programming. I have worked with some applications without map. They works fine. But I just started adding a map layer from ArcGISServerOnline following their examples. But my application in the simulator 4.2 crashes with the message "Program received signal SIGABRT" (on debugging) when executing the line marked red below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (void)viewDidLoad {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; // ----- US highways from ESRI&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt; NSURL *url = [NSURL URLWithString: @"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer" rel="nofollow" target="_blank"&gt;http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer&lt;/A&gt;&lt;SPAN&gt;"]; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; //It crashes on executing the line below&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; AGSDynamicMapServiceLayer *highwayLayer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL: url];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [self.mapView addMapLayer:highwayLayer withName:@"US Highways"]; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; [super viewDidLoad];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will really appreciate if somebody figures out the problem&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Suman&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 17:23:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crashing-on-trying-to-add-map-layer/m-p/48619#M441</guid>
      <dc:creator>SumanChatterjee</dc:creator>
      <dc:date>2011-02-05T17:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: Application crashing on trying to add map layer from ArcGISServer online</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crashing-on-trying-to-add-map-layer/m-p/48620#M442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found out the problem. Its because I did not add the -ObjC and -all_load flags in the Other linker flags under Edit Active Target settings.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Feb 2011 00:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/application-crashing-on-trying-to-add-map-layer/m-p/48620#M442</guid>
      <dc:creator>SumanChatterjee</dc:creator>
      <dc:date>2011-02-06T00:33:32Z</dc:date>
    </item>
  </channel>
</rss>

