简体   繁体   English

iOS应用程序在启动时崩溃

[英]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. 您好我的应用程序在Apple Review团队审核时发布,我没有在Crashlytics获得崩溃报告,这就是为什么我只有他们的响应和崩溃报告。 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 log_1log_2

UPD: Here I found UPD:我找到了

Termination Description: SPRINGBOARD, scene-create watchdog transgression: team.codebusters.1fit exhausted real (wall clock) time allowance of 17.74 seconds | 终止说明:SPRINGBOARD,场景创建看门狗违规:team.codebusters.1fit耗尽真实(挂钟)时间限制17.74秒| | | ProcessVisibility: Foreground | ProcessVisibility:前景| ProcessState: Running | ProcessState:运行| WatchdogEvent: scene-create | WatchdogEvent:scene-create | WatchdogVisibility: Foreground | WatchdogVisibility:前景| 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" | ) WatchdogCPUStatistics :( |“经过的总CPU时间(秒):36.550(用户36.550,系统0.000),61%CPU”,“经过的应用程序CPU时间(秒):1.321,2%CPU”|)

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 你应该避免在didFinishLaunchingWithOptions做长任务,那些有大量CPU工作的东西应该移到应用程序的其他地方,通常你应该在你的第一个可见的viewController中添加这些方法并添加一个加载指示器

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 Apple表示启动时间限制为20秒,因此如果您的工作负载消耗超过此值,那么您的应用程序将因监视器违规而崩溃

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM