7

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" | )

dr_barto
  • 5,723
  • 3
  • 26
  • 47
えるまる
  • 2,409
  • 3
  • 24
  • 44

1 Answers1

4

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

Reinier Melian
  • 20,519
  • 3
  • 38
  • 55
  • 1
    Is there a way to check if I have effectively improved the `didFinishLaunchingWithOptions` method? Somewhere to gather watchdog alloted time vs user cpu usage time? – Nagendra Rao Sep 27 '18 at 18:47