自动上传 iPhone 崩溃日志
快速问你一个问题。
如果我的应用程序定期检查崩溃日志并将其上传到服务器,我的应用程序商店审批流程是否会出现任何问题?这可能吗?如果没有,我是否可以拥有类似全局异常处理程序的东西,并使我的应用程序正常终止,同时能够将异常消息上传到服务器?
谢谢,
泰贾
Quick question for you.
Will I have any issues with the Appstore approval process if my app periodically checks for crashlogs and uploads it to a server? Is this even possible? If not, can I have something like a global exception handler and make my app terminate gracefully, while being able to upload exception messages to the server?
Thanks,
Teja
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于通过 App Store 分发的应用程序,Apple 将通过 iTunes Connect 向您提供崩溃日志。
对于 Ad-Hoc 构建,您需要让用户向您发送崩溃日志。当 iPhone 与 iTunes 同步时,它会将所有崩溃日志复制到计算机上。以下是它们在各种操作系统上的存储位置:
Mac OS X:
~/Library/Logs/CrashReporter/MobileDevice/[DEVICE_NAME]
Windows XP:
C:\Documents and Settings\[USERNAME]\Application Data\Apple Computer\Logs\CrashReporter\[DEVICE_NAME]
Windows Vista:
C:\ Users\[USERNAME]\AppData\Roaming\Apple Computer\Logs\CrashReporter\MobileDevice\[DEVICE_NAME]
(这些路径是我从 Google 获得的;我自己还没有验证过。但如果有错,有人可以评论)。
For apps distributed through the App Store, Apple will deliver the crash logs to you through iTunes Connect.
For Ad-Hoc builds, you will need to have your users send you the crash logs. When the iPhone is synchronized with iTunes, it copies all the crash logs onto the computer. Here are the locations where they are stored on various OSes:
Mac OS X:
~/Library/Logs/CrashReporter/MobileDevice/[DEVICE_NAME]
Windows XP:
C:\Documents and Settings\[USERNAME]\Application Data\Apple computer\Logs\CrashReporter\[DEVICE_NAME]
Windows Vista:
C:\Users\[USERNAME]\AppData\Roaming\Apple computer\Logs\CrashReporter\MobileDevice\[DEVICE_NAME]
(I got these paths from Google; haven't verified them myself. But someone can comment if they're wrong).