Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode not importing OS X crash log

Tags:

xcode

xcode4

I have a crash log for my app sent to me by a tester. According to the documentation I should be able to drop this into the 'Device Logs' section of the Library in the Organizer (or use the 'Import' button at the bottom of the window).

Unfortunately both does nothing. No error, no warning, no import.

My .crash file was created by hand by copying the content of an email so maybe the formatting is incorrect, comparing it to other crash files it seems correct though.

I have the build the crash log refers to in my archive also, as I know this is important for symbols to show up.

Any idea how I can debug this? This is using Xcode 4.4.1

like image 227
Damien Sirkis Avatar asked Aug 25 '12 04:08

Damien Sirkis


3 Answers

I experienced the same issue when I tried to import crash logs generated by PLCrashReporter. Then I noticed that Incident identifier and CrashReporter key fields in the crash reports are populated with "[TODO]" string instead of correct values. I replaced incident identifiers with arbitrary UUIDs and crash reporter key with UDID of one of my devices, and after that XCode was able to import the reports. I use XCode 4.5

like image 123
Aliaksei Avatar answered Oct 21 '22 01:10

Aliaksei


I broke down and used one of my support credits with Apple to try and get to the bottom of this.

The bottom line is quite simple. As of now (Xcode 4.6), OS X crash logs cannot be imported into Xcode. Only iOS ones.

like image 27
Damien Sirkis Avatar answered Oct 21 '22 02:10

Damien Sirkis


I suspect an Xcode bug.
I have the same problem with Xcode 4.4.1. Even tried the latest 4.5.2 developer release.

I used an earlier version of Xcode, and it kinda worked (only importing one crash at a time, required to relaunch Xcode several times, but I managed to do what I needed).

You can download an older version of Xcode here.


I had some success with deleting ~/Library/Developer/Xcode/iOS Device Logs when Xcode refused to cooperate. Proceed at your own risk.

like image 24
Guillaume Avatar answered Oct 21 '22 01:10

Guillaume