Can I debug my app using iPhone backup data?
我可以使用iPhone备份数据调试我的应用程序吗？
You may sometimes receive reports from your customers of problems that are hard to troubleshoot over email. It can be a pain to really get to the bottom of the problem without access to the app data stored on the customer's device.
There is, however, a way your customer can send you that data: by syncing their iPhone with their computer and sending you the app's data file in the iTunes backup.
To do this, you'll need to know the name of the app's file in the backup. If you have a look in your own iPhone backup folder, you should be able to find it with a string search tool such as grep by searching for a string you know will be in the file.
Once you know the name of the file, simply ask your customers to send you their copy of that file when they have a hard-to-diagnose problem. An easy way for them to get the file is for them to extract it using a tool such as iPhone Backup Extractor.
If you have any other good tips for debugging tricky iPhone app issues, then do share them in the comments. Happy troubleshooting!
有时您可能会收到客户的报告，这些报告很难通过电子邮件进行故障排除。如果不访问存储在客户设备上的应用程序数据，则要真正解决问题可能会很痛苦。
但是，您的客户有一种方法可以向您发送数据：通过将iPhone与计算机同步并在iTunes备份中向您发送应用程序的数据文件。
为此，您需要知道备份中应用程序文件的名称。如果您在自己的iPhone备份文件夹中查看，应该可以通过搜索grep类的字符串搜索工具找到已知的字符串来找到它。
知道文件名后，只需在遇到难以诊断的问题时要求客户将其文件副本发送给您即可。他们获取文件的一种简单方法是让他们使用iPhone Backup Extractor等工具将其提取。
如果您还有其他技巧可以调试棘手的iPhone应用程序问题，请在评论中分享它们。排除疑难！