App crashes on certain actions when using instruments, how to find reason?

折月煮酒 提交于 2019-12-11 04:28:44

问题


I have an App with a Navigation Controller, several sub Controllers.

  • With XCode Debug I can't find any errors.
  • With iPhone running unplugged, I can't find any errors.
  • With Instruments running the App on Simulator it doesn't crash.
  • With Instruments running the App on iPhone it crashes when I click forth and back between certain ViewControllers. It's not happening everytime, but very often.

My boss also reported that on his iPod it crashes sometimes, so I'm quite confused now. How should I proceed ? (still quite new to instruments). How can I find out what makes the app crash ? Is there a way to launch instruments next to debugger ? Crash Logs don't tell me much, or maybe I don't know how to read them correctly.


回答1:


My experience with instruments is decidedly mixed. Sometimes there are crashes that I can't explain. And some of these crashes don't happen when I am not using instruments. That said, instruments can also provide useful information, and your situation may be one of those times.

Based on your description, it is possible that you have memory leaks. So I would suggest running it on the simulator with instruments to look for leaks. [In xCode, select Run>Run with performance tool>leaks, then click on the leaks panel in the instruments window that comes up.]



来源:https://stackoverflow.com/questions/3168494/app-crashes-on-certain-actions-when-using-instruments-how-to-find-reason

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