I am developing an iOS app using Swift. The app is centered around Apple Maps. I am new to iOS development. I am using Fabric.io to beta distribute the app and to get crash reports back. However, a lot of the crash reports I am getting are not very helpful. Sometimes the crash reports only specify the method where the crash happened but don't give me any clue as to why it crashed. I am trying to understand if this is standard or if I should switch to another crash reporting service.
Here is an example of such crash reports:
Crashed: com.apple.main-thread
EXC_BREAKPOINT UNKNOWN at 0x00000001000a68f8
Thread : Crashed: com.apple.main-thread
0 <APP NAME> 0x00000001000a68f8 <APP NAME>.MapViewController.(getMapAnnotations (<APP NAME>.MapViewController) -> (Swift.Double, long : Swift.Double) -> ()).(closure #1).(closure #1) (MapViewController.swift)
1 <APP NAME> 0x00000001000a6570 <APP NAME>.MapViewController.(getMapAnnotations (<APP NAME>.MapViewController) -> (Swift.Double, long : Swift.Double) -> ()).(closure #1).(closure #1) (MapViewController.swift)
2 libdispatch.dylib 0x0000000192ed13ac _dispatch_call_block_and_release + 24
3 libdispatch.dylib 0x0000000192ed136c _dispatch_client_callout + 16
4 libdispatch.dylib 0x0000000192ed5980 _dispatch_main_queue_callback_4CF + 932
5 CoreFoundation 0x00000001820f9fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
6 CoreFoundation 0x00000001820f804c __CFRunLoopRun + 1492
7 CoreFoundation 0x00000001820250a4 CFRunLoopRunSpecific + 396
8 GraphicsServices 0x000000018b1bf5a4 GSEventRunModal + 168
9 UIKit 0x0000000186956aa4 UIApplicationMain + 1488
10 <APP NAME> 0x00000001000f1914 main (AppDelegate.swift:16)
11 libdyld.dylib 0x0000000192efaa08 start + 4
Here is the method definition of the method where the error is happening:
func getAnnotations(lat: Double, long: Double){ // ignore the lat long arguments
var apiWrapper = apiWrapper()
apiWrapper.search(completionHandler: {(error: NSError?, mediaElements: [MediaElement]?) in
if error == nil {
dispatch_async(dispatch_get_main_queue(), {
self.myMapView!.removeAnnotations(self.myMapView!.annotations)
self.mediaAnnotations = []
for m in mediaElements! {
var annotation = CustomAnnotation(lat: m.lat,long: m.long, mediaTuple: (media.url, media.type))
self.mediaAnnotations.append(annotation)
}
self.reorganizeAnnotations(self.mediaAnnotations)
})
}
})
}