The application crashes with certain actions when using tools, how to find the reason?

I have an application with a navigation controller, several subcontrollers.

  • With Xcode Debug I can not find any errors.
  • If the iPhone works without a connection, I cannot find any errors.
  • With the tools that run the application on the simulator, it does not crash.
  • With the tools that launch the application on the iPhone, it crashes when I click back and forth between some ViewControllers. This does not happen every time, but very often.

My boss also said that he sometimes crashes on his iPod, so I'm completely confused right now. How do I proceed? (still brand new for tools). How can I find out what could cause the application to crash? Is there a way to run tools next to the debugger? Crash logs don't tell me a lot, or maybe I don't know how to read them correctly.

0
source share
1 answer

My experience with tools is definitely mixed. Sometimes there are failures that I cannot explain. And some of these failures do not occur when I do not use tools. However, tools can also provide useful information, and your situation may be one of those cases.

Based on your description, it is possible that you have a memory leak. Therefore, I would suggest running it on a simulator with tools for finding leaks. [In xCode, select Run> Run With Performance Tool> Leaks, then click the Leaks panel in the toolbar that appears.]

0
source

Source: https://habr.com/ru/post/910234/


All Articles