Exception in Delegate Method Causes Xcode to Crash

681
5
Jump to solution
03-16-2012 07:00 AM
DavidMarley
Occasional Contributor II
I've had two cases now where setting a breakpoint in an Esri iOS delegate method causes Xcode to crash immediately upon hitting the breakpoint. Xcode closes with the message "Xcode quit unexpectedly...". There is no other error detail that I can find. The two cases where this has occurred for me are in delegate methods mapView:didClickCalloutAccessoryButtonForGraphic: and mapView:didLoadLayerForLayerView:. I am able to set breakpoints elsewhere, say in viewDidLoad, as well as in delegate methods within the standard iOS libraries.

EDIT: If I set a breakpoint in a delegate associated with standard Apple library (such as: splitViewController:willShowViewController:invalidatingBarButtonItem:), it still crashes. However if I do the same thing in a simple test iOS application without any references to Esri SDK or with the associated project setup properties set as per the Esri doc, then I can place a breakpoint in the same delegate without any issue....so the problem seems at least related to the Esri SDK, or one of the other settings that the Esri doc says to set...or I am just missing something here!

I am using ArcGIS Runtime SDK for iOS version 2.1 Final; Mac OS X 10.7.3; Xcode 4.3 (4E109). As far as I know I have all necessary libraries added, search paths, compiler flags etc. set as per the Esri documentation. My app compiles without any warnings or errors, and runs fine, so long as I don't put a breakpoint in a delegate method.

What is going on here? Am I missing something obvious? This seems like such a fundamental capability - I am a little unsure what I could be doing wrong. I don't have more detailed error information to provide as there is not, at least that I can find.

Thanks in advance...
0 Kudos
1 Solution

Accepted Solutions
NimeshJarecha
Esri Regular Contributor
The new version (v2.2) of the ArcGIS Runtime SDK for iOS is released. Please see what's new in version 2.2.

The new SDK works fine with Xcode 4.3.1 and you won't see the issue reported.

Regards,
Nimesh

View solution in original post

0 Kudos
5 Replies
NimeshJarecha
Esri Regular Contributor
Could you please attach a sample project so I can look at it? There must be missing some setting in the project.

Regards,
Nimesh
0 Kudos
DavidMarley
Occasional Contributor II
Nimesh,

Thanks for taking a look at this. I agree it seems I must have a missing project setting, or be doing something else wrong.

I've attached 2 projects:

1. InfoTemplate is a class example from the Esri "Mobile GIS: Getting Started with the ArcGIS API for iOS" Virtual Campus class. If I put a breakpoint in mapView:didClickCalloutAccessoryButtonForGraphic:, then Xcode crashes.

2. MapViewTest1 - A breakpoint in mapView:didLoadLayerForLayerView: causes this one to crash Xcode.

Thanks again,

Dave
0 Kudos
NimeshJarecha
Esri Regular Contributor
Dave,

The samples attached by you are working fine with Xcode 4.2.1 but has issue mentioned by you with Xcode 4.3.1. I'm not sure what has changed in the Xcode 4.3.1 which is causing this issue but we'll investigate.

Thank you for reporting.

Regards,
Nimesh
0 Kudos
NimeshJarecha
Esri Regular Contributor
The new version (v2.2) of the ArcGIS Runtime SDK for iOS is released. Please see what's new in version 2.2.

The new SDK works fine with Xcode 4.3.1 and you won't see the issue reported.

Regards,
Nimesh
0 Kudos
DavidMarley
Occasional Contributor II
Thanks Nimesh.  Glad to hear this is fixed in version 2.2.  I am trying to test this out for myself but unfortunately am having an issue getting any projects to work with the new SDK.  See this post - do you have any thoughts on that?  I am guessing something is wrong with my installation - but I can't see what. Or perhaps my project settings (though I have checked those multiple times) .

Thank you.
0 Kudos