Why is my app getting killed? — WWDC2020 talk summary.

Here’s a short summary of this WWDC2020 talk about app terminations in iOS: https://developer.apple.com/videos/play/wwdc2020/10078/

iOS14 now provides a new API: MetricKit that gives specific reasons why our app is getting killed:

The last one “NormalExitCount” is when a user explicitly terminated your app via app switcher.

We can get programmatic access to stack trace and other diagnostic data after a crash occurred:

MXCrashDiagnostic also gives Watchdog reports if a 20 second time limit has been exceeded on a lifecycle operation such as didFinishLaunchingWithOptions, due to a deadlock or infinite loop.

Read all business book summaries and tech articles from Alexei by becoming a Medium member. https://franticrock.medium.com/membership

If running code in the background, there are CPU rate limits imposed. An “Energy Exception Report” is generated when these are exceeded and can be found in…

--

--