Xcode 4 failure to symbolicate Crash Log

Solution 1:

Further to coob's answer, I find adding these directories to Spotlight's ignore list (System Preferences → Spotlight → Privacy) helps:

  • ~/Library/Developer/Xcode/DerivedData/ (Xcode 4 build artefacts)
  • ~/Library/Application Support/iPhone Simulator/ (file system for the iPhone Simulator)

Like this:

Spotlight settings to suppress unhelpful .app files

(See this blog post for additional detail.)

Update: from a comment by joerick: "This works, but it also meant that Instruments.app couldn't find the debug symbols, so I had to remove DerivedData from the Privacy list to do some profiling." - bear this in mind if you use Instruments.

Solution 2:

For me, neither the line 323 edit nor the Spotlight exclusions fixed it. So I tracked down the issues in symbolicatecrash and published a patched version on github. Just replace /usr/local/bin/symbolicatecrash and your iOS crash reports will start symbolicating again.

This patch may not work for Mac apps, as it makes assumptions about the structure of the .xcarchive directory which don't appear to hold for desktop apps.

Edit: you may still have problems if Spotlight hasn't indexed your archives. You can get force an index by running the following in a terminal:

mdimport ~/Library/Developer/Xcode/Archives/

More info on troubleshooting here.

Solution 3:

The symbolication script is having an issue finding the right binary/dSYM. It uses Spotlight to do this and often cocks up. Here's a few things to try:

  1. Make sure your .app doesn't have a space in it.

  2. It may be finding the version of your app installed on the simulator (backwards, but it sometimes does this for me). Reset your simulator.

  3. Clear your build directory.

Solution 4:

I had the same issue today. From my research on the web, there is an issue with the armv6 libraries that cause the symbolicate process to fail. I found the answer in the dev forums here.

For those without access, you need to create a copy of the symbolicatecrash script from /Developer/Platforms/iPhoneOS.platform/Developer/Library/PrivateFrameworks/DTDeviceKit.framework/Versions/A/Resources/. Edit the file and replace the 'die' on line 323 with a 'print' (this is why it's not working, the script fails here).

Then run symbolicatecrash against your crash log. You'll see the error from line 323, but then it will symbolicate all your lines and variables. It still fails for the system libraries, but it give enough information to fix your own bugs.

Hope this helps.