Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS app crash on launch

Hello my app crashed on launch on review of Apple Review Team and I didn't get crash report in Crashlytics, that is why only information I have is their response and crash report. So I share it with you, I didn't find proper information inside it, may be someone can read it better...

Response:

We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.

Logs:

log_1, log_2

UPD: Here I found

Termination Description: SPRINGBOARD, scene-create watchdog transgression: team.codebusters.1fit exhausted real (wall clock) time allowance of 17.74 seconds | | ProcessVisibility: Foreground | ProcessState: Running | WatchdogEvent: scene-create | WatchdogVisibility: Foreground | WatchdogCPUStatistics: ( | "Elapsed total CPU time (seconds): 36.550 (user 36.550, system 0.000), 61% CPU", | "Elapsed application CPU time (seconds): 1.321, 2% CPU" | )

like image 300
えるまる Avatar asked Jul 19 '18 09:07

えるまる


People also ask

Why do my apps crash as soon as I open them?

Apps can sometimes crash when the storage space is not adequate. You will have to clear up your storage space by deleting unwanted apps and files. Go to Settings -> Apps to uninstall unwanted apps and games.

How do you fix an app that keeps crashing on iPhone?

To fix iPhone apps that keep crashing: Swipe up on the app to close it, and then reopen it. Restart the phone. Then open the app and see if it's working properly. Check for app updates.

Why does my Apple app keep crashing?

An app might crash due to lapses in the installation process. It might as well be outdated or contain some bugs. However, uninstalling and reinstalling the app removes these bugs for most people. Once you uninstall the app, go to the App Store to reinstall it.


1 Answers

You should avoid make long tasks in didFinishLaunchingWithOptions things that have a lot of CPU work should be moved to somewhere else in your app, normally you should add those methods in your first visible viewController and add a loading indicator

Apple indicates that the launch time limit is 20 seconds, so if your workload consume more than that, then your app will crash with watchdog transgression

like image 103
Reinier Melian Avatar answered Oct 04 '22 21:10

Reinier Melian