iOS Simulator Crash Logs

三世轮回 提交于 2019-12-03 06:19:40

A Crash log is just an output of what the debugger already gives you. When you are running in the simulator attached to the debugger, and you hit the crash, you can view the back trace information in the debug navigator (default key binding is cmd+5)

  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/

It appears if you aren't running Xcode (mine is 4.5.2) but just the simulator (mine is 6.0) that when an app crashes it does save a crash report. To view it bring up the Application/Utilities/Console and

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

(2) under "DIAGNOSTIC AND USAGE INFORMATION" there is a "User Diagnostic Reports" that if you open up should have your crash reports

(3) the area on the right of the console has the log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!