Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debugging .xccrashpoint

I've got some logs on Xcode's Organizer but I don't know how to properly debug them. I've read Apple Documentation at Apple Documentation by it doesn't tells me where the error/crash message is. It's hard to debug if you don't know what has caused it. When I try to open each log in Finder, it opens a .xccrashpoint file, not a standard crash log.

Xcode Organizer

Is there anyway to know the error message (as we received on previous crash reports)?

like image 525
Pedro Góes Avatar asked Oct 02 '15 03:10

Pedro Góes


People also ask

What is a crash log?

Tombstone crash logs are written when a native crash in C/C++ code occurs in an Android application. The Android platform writes a trace of all the running threads at the time of the crash to /data/tombstones, along with additional information for debugging, such as information about memory and open files.


2 Answers

I have stumbled on this recently too. What helped me was:

  • right click on the crash -> show in finder
  • copy the .xccrashpoint file somewhere
  • rename the file extension from .xccrashpoint to .crash
  • now Finder sees it as a folder and you can browse to the .crash file you need

Then you need to symbolicate the crash. There are several ways to do this, but the easiest I know is to:

  • open Window -> Devices panel in xCode
  • Click on the device (I had to plug in iPad) -> open device logs
  • drag and drop the .crash file there
  • sort by date, find your crash, the crash is now symbolicated
like image 187
roman777 Avatar answered Nov 06 '22 10:11

roman777


Actually this file is a package and by right click on, and select

Show Package Contents

you can see contents of it.

  • DistributionInfos->all->Logs

You see the all reports file, then open them by "Console" application

like image 44
Fa.Shapouri Avatar answered Nov 06 '22 10:11

Fa.Shapouri