Crash Reports for Swift

So I've read through the Apple documentation on crash reports and it's still unclear to me how I would even begin interpreting a crash report such as the following:


1 libswiftCore.dylib _TFVs12_ArrayBuffer37_checkInoutAndNative...

2 libswiftCore.dylib _TFSag9subscriptFSix

3 AppName 0x100040000

4 AppName 0x100040000

5 AppName 0x100040000

6 UIKit -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:]

7 UIKit -[UITableView _userSelectRowAtPendingSelectionIndexPath:]

15 GraphicsServices GSEventRunModal

16 UIKit UIApplicationMain

17 AppName 0x100040000

18 libdyld.dylib start


This is something that irks me about XCode. How can I help the user with the app if I can't even interpret the crash reports?

Your crash report is not symbolicated, which is why frames 3 through 5 have no useful info. Technote 2151 Understanding and Analyzing iOS Application Crash Reports has instructions for how to do that symbolication.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Thanks Eskimo but this did not work for me even though I have the archive stored. Any tips to get this working so I can get my logs symbolicated?


"Xcode will automatically symbolicate all crash reports that it encounters, if it has the

.dSYM
and application binary that produced the crash report. Given a crash report, the matching binary, and its
.dSYM
file, all you need to do for symbolication is to add the crash report to the Xcode Organizer.
  1. Connect an iOS device to your Mac
  2. Choose "Devices" from the "Window" menu
  3. Under the "DEVICES" section in the left column, choose a device
  4. Click the "View Device Logs" button under the "Device Information" section on the right hand panel
  5. Drag your crash report onto the left column of the presented panel
  6. Xcode will automatically symbolicate the crash report and display the results"

You need make sure that the binary UUID in the crash report matches the UUID in your

.dSYM
and that UUID is visible to Spotlight. To learn more, read this post.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Eskimo, I tried using those commands and nothing worked. Any other tips? I also tried putting the app file, dSYM file, and crash file all in the same folder then running the symbolicate command. That didn't work either.

I tried using those commands and nothing worked.

“nothing worked” is kinda vague. What did you try? And what did you see?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"
Crash Reports for Swift
 
 
Q