How do you handle crashes in your iPhone apps?

If you're browsing a website and can't find any good submitting solutions, letting your user send bug reports from your iPhone app.

How do you handle crashes and exceptions?

  • You send user data errors to the server,
  • take the log file somewhere and attach
  • or do you ignore him and pretend that this did not happen?

Does anyone have any experience?

Update

I know how to prepare you for software testing using static analysis, leak detection, user testing, etc.

But errors can occur when a user (incorrectly) uses my software. Always assume that your user is trying to break your software.

What I want to understand is how (I, or rather the application) can provide me with useful data when errors occur. Because they do even in high-quality products - like my own. :)

Iโ€™m looking for anyone who has the experience of using error reporting, stack tracing, logs, etc. to see how they handle this problem.

+7
objective-c exception-handling iphone mobile error-handling
source share
3 answers

Some people use built-in analytics such as Flurry, which publishes the exception data on the Flurry website, which you can view later.

In addition, Apple has an error reporting area in iTunes Connect, but I'm not sure if it has been working since I have not seen something, and I doubt that every person runs my applications flawlessly. I donโ€™t say that I write bad code (I hope), but not all devices are created equal, so I must assume that it crashed at least once. However, there is always the option of logging and sending to the server.

In most cases, if you give users your email address in the application itself (for example, according to the instructions or on the screen), they will send me any questions by email. This is slightly better, as it gives you the opportunity to fix the problem before they get into the viewing forms in iTunes.

+4
source share

You can also try BugSense . This is a free, real-time, error report for iOS

PS: I am one of the founders.

+2
source share

Most of the time you have to deal with memory management problems. To test memory leaks and find in your code in which areas you leaked memory. Use tools if you use Xcode.

In your Xcode, go to Run -> Run with the performance tool -> Leaks.

You can check everything here when it comes to memory allocation.

Note. To avoid crashes, make sure you release the objects correctly and check your scheduled timers.

Regards, ZaldzBugz

-2
source share

All Articles