iOS Simulator Crash Logs

Dustin picture Dustin · Jun 27, 2012 · Viewed 7.4k times · Source

When I use the iOS simulator and the app crashes, I can't find the crash logs. I've been looking all over the internets and can't figure out how to enable them. I know I can just run on an actual device and get the crash logs that way, but the bug I'm trying to fix right now tends to cause the program to be hung in the debugger. Then there's no qlaunchsuccess packet sending and it's a huge pain, especially when I have to run the program over and over. The only advice I've been able to find says the use CrashReporterPrefs, but a search of my hard drive reveals nothing named something even close to this. I've also dug into the package contents of XCode and the files of the iOS simulator. The iOS simulator has a crash logs folder, but it is empty. Anyone know how to get this working? Thanks.

Answer

user1629342 picture user1629342 · May 3, 2013
  1. Run your App with Xcode to install the App to iOS Simulator
  2. Launch your App on Simulator without Xcode
  3. reproduce steps for crash
  4. the Crash log should show up under this directory

    ~/Library/Logs/DiagnosticReports/