Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Crash logs generated by iPhone Simulator?

Are there any crash logs generated by iPhone Simulator?

the Simulator crashes a lot but not leaving any traces in Console... the crash log will be useful.

like image 947
Raptor Avatar asked Dec 08 '09 03:12

Raptor


People also ask

How do I get my iPhone crash report?

Open Settings. app. Tap Privacy, then scroll down and tap Analytics. Tap Analytics Data. Tap the crash log to open it.

How do I get crash logs from TestFlight?

App Store Connect shows you all of your TestFlight feedback, including crash feedback. You can continue to download the raw feedback and crash log directly from App Store Connect or, new this year, you can open the associated crash right in the Organizer with the new Open in Xcode button.


1 Answers

The console will show the NSLog() output from an app running in the simulator. The crash logs are saved to file.

I have found some in my home directory under

~/Library/Logs/DiagnosticReports/ 

They have a file extension of .crash

Something I haven't yet figured out is how to get them to generate even if the debugger grabs the EXC_BAD_ACCESS signal.


Update

Currently, (OSX 10.11.6), the .crash logs in ~/Library/Logs/DiagnosticReports, are when the emulator itself crashes. Logs for an app crashing (but the emulator device is still running fine), are in:

~/Library/Logs/CoreSimulator

Per crash, there is a sub-folder with a unique id. Sort by date, so that your recent crash is the first sub-folder. Inside that, start by looking at stderr.log and system.log.

Also directly under CoreSimulator, see CoreSimulator.log and Simulator.log.

like image 122
ohhorob Avatar answered Sep 16 '22 20:09

ohhorob