IOS Simulator Crash Logs

When I use the iOS simulator and the application crashes, I cannot find crash logs. I look on all the Internet and cannot figure out how to turn them on. I know that I can just run on the device itself and get crash logs this way, but the error I'm trying to fix tends to cause the program to hang in the debugger. Then there is no sending qlaunchsuccess package, and this is a huge pain, especially when I have to run the program again and again. The only advice I could find is that using CrashReporterPrefs, but searching on my hard drive does not show anything, something is even close to that. I also dug up the contents of the Xcode package and the iOS simulator files. The iOS simulator has a crash log folder, but it is empty. Does anyone know how to make this work? Thank.

+13
debugging objective-c xcode crash-reports
Jun 27 '12 at 13:37
source share
3 answers

The crash log is simply the result of what the debugger already gives. When you work in a simulator connected to a debugger and you get into an emergency, you can view the backtracking information in the debug navigator (the default binding is cmd + 5 by default)

-5
Jun 27 2018-12-12T00:
source share
  • Launch the app with Xcode to install the app in iOS Simulator.
  • Run the application on a simulator without Xcode
  • play steps for failure
  • The crash log should appear in this directory.

    ~ / Library / Logs / DiagnosticReports /

+27
May 03 '13 at 3:54
source share

It appears if you are not using Xcode (mine - 4.5.2), but just a simulator (mine 6.0) that when an application crashes it saves a crash report. To view it, create an application / Utilities / Console and

(1) make sure it shows a list of logs (see the top left of the console to make sure it is not hidden)

(2) in the “DIAGNOSTICS AND USE OF INFORMATION” section there are “User Diagnostic Reports” which, if you open, must have error reports

(3) the area to the right of the console has a log

+2
Feb 20 '13 at 15:57
source share



All Articles