更新时间:2023-10-20 21:29:34
控制台将显示模拟器中运行的应用程序的 NSLog()
输出。崩溃日志保存到文件中。
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/
他们的文件扩展名为 .crash
我还没想到的是,即使调试器抓住了它,如何让它们生成 EXC_BAD_ACCESS
signal。
Something I haven't yet figured out is how to get them to generate even if the debugger grabs the EXC_BAD_ACCESS
signal.
更新
目前,(OSX 10.11.6),.crash登录〜/ Library / Logs / DiagnosticReports
,当模拟器本身崩溃时。 app 崩溃的日志(但模拟器设备仍然运行良好),位于:
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
~/Library/Logs/CoreSimulator
每次崩溃时,都有一个具有唯一ID的子文件夹。按日期排序,以便您最近的崩溃是第一个子文件夹。在其中,首先查看 stderr.log
和 system.log
。
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
.
也直接在 CoreSimulator
下,参见 CoreSimulator.log
和模拟器。记录
。