+ Reply to Thread
Results 1 to 6 of 6

Thread: Exception in Delegate Method Causes Xcode to Crash

  1. #1
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Exception in Delegate Method Causes Xcode to Crash

    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...
    Last edited by dpmarley; 03-16-2012 at 08:00 AM.
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  2. #2
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0

    Default Re: Exception in Delegate Method Causes Xcode to Crash

    Could you please attach a sample project so I can look at it? There must be missing some setting in the project.

    Regards,
    Nimesh

  3. #3
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Exception in Delegate Method Causes Xcode to Crash

    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
    Attached Files
    Last edited by dpmarley; 03-19-2012 at 07:10 AM.
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

  4. #4
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0

    Default Re: Exception in Delegate Method Causes Xcode to Crash

    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

  5. #5
    Nimesh Jarecha

    Join Date
    Oct 2009
    Posts
    883
    Points
    493
    Answers Provided
    106


    0
    This post is marked as the answer

    Default Re: Exception in Delegate Method Causes Xcode to Crash

    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

  6. #6
    David Marley
    Join Date
    Apr 2010
    Posts
    90
    Points
    1
    Answers Provided
    0


    0

    Default Re: Exception in Delegate Method Causes Xcode to Crash

    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.
    David Marley, GISP | Sr. Geospatial Developer
    Geographic Information Services, Inc.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts