简体   繁体   中英

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM