Auto upload crashlogs iPhone

旧时模样 提交于 2019-12-05 07:18:58

问题


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


回答1:


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).



来源:https://stackoverflow.com/questions/3876485/auto-upload-crashlogs-iphone

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