xCode device logs not populating after application crash

别来无恙 提交于 2019-12-10 09:39:47

问题


I'm getting a crash on my iPad 2 when building my Corona SDK app with a distribution profile, and putting it on my device via a USB cable. I'm testing a bug that happens when the internet is not connected (not sure if relevant). When the app crashes, the devices window's output stream states that it's storing a crash report (http://pastebin.com/Qa3BeaJ2), but then the crash never shows up when I push the "view device logs" button. When I push that button, I get an error message. Is resolving this the secret to getting my crashes to show up in the device logs?

Jul 28 13:41:17 JackSpicer crash_mover[6180] : (Error) NPSLogging: Failed to resolve pairing ID ((null)) or data store ((null)) for active device

Thanks!

UPDATE: It's now 10 PM. I've been checking the device logs throughout the day...and I just NOW got an update from 5:46 PM. What the hell? It's extremely short, and says:

Incident Identifier: 2481ECB9-EB67-4580-8F50-0F3BC9DEC466
CrashReporter Key:   cda9dbf37d5d3acf21765f20407ce60ad9f7b70a
Date: 2015-07-28 17:46:26 +0800
Reset count: 0
Boot failure count: 1
Boot faults: 
Boot stage: 255
Boot app: 2681261667

回答1:


OK, I was able to populate my crash. Here's how I did it:

  • Synced the device with iTunes
  • Opened ~/Library/Logs/CrashReporter/MobileDevice/< Device Name >
  • Found a folder named Retired (no idea why or what this is)
  • Inside was my crash log named blah.blah.beta
  • Added a .crash extension
  • Dragged it into Xcode's View Device Logs window


来源:https://stackoverflow.com/questions/31668287/xcode-device-logs-not-populating-after-application-crash

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