如何删除 iOS 崩溃报告器注销设备?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/13869038/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 21:33:13  来源:igfitidea点击:

How can I delete iOS crash reporter logs off the device?

ios

提问by Felix

I'm getting this message in my logs.

我在日志中收到此消息。

"Not saving crash log because we have reached the limit for logs to store on disk. Sync or otherwise clear logs from /var/mobile/Library/Logs/CrashReporter to save new log

“不保存崩溃日志,因为我们已达到存储在磁盘上的日志的限制。同步或以其他方式清除 /var/mobile/Library/Logs/CrashReporter 中的日志以保存新日志

I assume this refers to the device as I have deleted the crashreports in XCode.

我假设这是指设备,因为我已经删除了 XCode 中的崩溃报告。

How can I delete iOS crash reporter logs off the device?

如何删除 iOS 崩溃报告器注销设备?

回答by RobertJoseph

Disconnect your device and close Xcode.

断开您的设备并关闭 Xcode。

On your dev machine you should look in:

在您的开发机器上,您应该查看:

/Users/%username%/Library/Logs/CrashReporter/MobileDevice/%devicename%

Move all reports to the Trash and then sync your device with iTunes. That should remove the logs from the device.

将所有报告移至废纸篓,然后将您的设备与 iTunes 同步。这应该从设备中删除日志。

回答by Chris Trevarthen

Syncing your device through iTunes will remove the logs from your device.

通过 iTunes 同步您的设备将从您的设备中删除日志。

回答by Xiao

The directory /var/mobile/Library/Logs/CrashReporteris the one in your iOS device, instead of your Mac OS X/Windows computer. The directory ~/Library/Logs/CrashReporter/MobileDevicementioned by another answer, could be simply removed by using Xcode Devices (shortcut in Xcode: command+shift+2)

该目录/var/mobile/Library/Logs/CrashReporter是 iOS 设备中的目录,而不是 Mac OS X/Windows 计算机中的目录。该目录~/Library/Logs/CrashReporter/MobileDevice由另一个答复中提到,可以通过使用Xcode的设备来简单地删除(快捷键在Xcode:command+ shift+ 2

So if your want to remove iOS device crashlogs, you need to get into that dir. If you jailbreaked your iOS device, you could ssh to your iOS device with default password alpine(if you did not change it)

因此,如果您想删除 iOS 设备崩溃日志,则需要进入该目录。如果你越狱了你的 iOS 设备,你可以使用默认密码 ssh 到你的 iOS 设备alpine(如果你没有更改它)

ssh [email protected] 

x.x.x.xis the IP address of your iOS device.

x.x.x.x是您的 iOS 设备的 IP 地址。

after you sshed to your iOS device, Now you could remove all files/directories in it to free some space:

在 SSH 到 iOS 设备后,现在您可以删除其中的所有文件/目录以释放一些空间:

cd /var/mobile/Library/Logs/CrashReporter
rm -rf *

回答by Jeff

To delete crash logs on iOS device.

删除 iOS 设备上的崩溃日志。

  1. In Xcode, Devices window, with device selected, click View Device Logs button.
  2. A modal window pops up listing all logs in left pane, and selected log contents in right pane.
  3. Click top log item in left pane.
  4. Scroll to bottom of log list.
  5. Shift-Click on log item at bottom of list. All log items will be selected.
  6. Press Delete key.
  7. Confirmation dialog box appears.
  8. Confirm deletion in dialog box.
  9. Done!
  1. 在 Xcode 的 Devices 窗口中,选择设备后,单击 View Device Logs 按钮。
  2. 弹出一个模态窗口,在左窗格中列出所有日志,在右窗格中列出选定的日志内容。
  3. 单击左窗格中的顶部日志项。
  4. 滚动到日志列表底部。
  5. 按住 Shift 键单击列表底部的日志项。将选择所有日志项。
  6. 按删除键。
  7. 出现确认对话框。
  8. 在对话框中确认删除。
  9. 完毕!