设备日志未出现在 Xcode 中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/14516595/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Device logs not appearing in Xcode
提问by lakesh
I have some crash logs which I am able to see in the iPad when I go to Settings->About->Diagnostics & Usage ->Diagnostics & Usage Data. But when I connect my iPad to the my computer and click Xcode->Window->Organizer->My Device Name, I am not able to see the logs at all. What might have been the issue? Any idea.
我有一些崩溃日志,当我转到“设置”->“关于”->“诊断与使用”->“诊断与使用数据”时,我可以在 iPad 中看到这些日志。但是当我将 iPad 连接到我的计算机并单击 Xcode->Window->Organizer->My Device Name 时,我根本看不到日志。可能是什么问题?任何的想法。
采纳答案by lakesh
Better Method to take device logs:
获取设备日志的更好方法:
~/Library/Logs/CrashReporter/MobileDevice/<your iPhone's name>/
回答by malhal
The device logs are now contained in SQLite databases in this folder:
设备日志现在包含在此文件夹中的 SQLite 数据库中:
~/Library/Developer/Xcode/iOS Device Logs
Clear that out and take control of your CPU from Xcode again! Once its cleared out then maybe you'll get it to show the one you want if to perform the crash again.
清除它并再次从 Xcode 控制您的 CPU!一旦它被清除,那么如果再次执行崩溃,也许你会得到它显示你想要的那个。