ios - iOS 应用程序在控制台显示时卡在启动屏幕:尝试为已有的场景句柄创建面包屑操作?
问题描述
1.从TestFlight下载我的应用后点击,或者直接从Xcode运行,应用卡在启动界面,无法继续。
2.与macOS连接时,从Console中我们可以看到SpringBoard过程中可能出现的一些相关错误:
Attempting to create a breadcrumb action for a scene handle which already has one (sceneID:#myAppName#-default). Are you trying to active an app that's already active?
...
[Main] dispatch event:
<SBMainTransitionSwitcherModifierEvent: 0x2837d7dc0; type: MainTransition; transitionID: xxx; phase: Complete; animated: YES; fromAppLayout: 0x0; toAppLayout: <SBAppLayout: 0x281500e80; primary: #myAppName#; environment: main>; fromEnvironmentMode: home-screen; toEnvironmentMode: application; pendingTermination: {(
)}>
当应用程序可以正常启动时,该日志中的“pendingTermination: {()}”不会出现。现在我们在我的应用程序进程中看不到任何日志。
3.然后当我锁定屏幕并解锁时,iPhone只显示黑色背景,我不能像往常一样使用我的iPhone。这是控制台中的日志:
3.1 锁屏:
[sceneID:#myAppName#-default] Setting deactivation reasons to: 'appSwitcher, systemAnimation' for reason: updateAllScenesForBand - Assertion added.
[sceneID:#myAppName#-default] Setting deactivation reasons to: 'appSwitcher' for reason: updateAllScenesForBand - Assertion removed.
Invalidating assertion 32-60-106090 (target:[application<#myAppName#>:7754](UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default)) from originator [daemon<com.apple.SpringBoard>:60]
Calculated state for application<#myAppName#>: none (role: UserInteractiveNonFocal)
3.2 解锁屏幕:
Acquiring assertion targeting [application<#myAppName#>:7754](UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default) from originator [daemon<com.apple.SpringBoard>:60] with description <RBSAssertionDescriptor| "injecting inherited from "UIScene:com.apple.frontboard.systemappservices::com.apple.springboard" to 7754<UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default>" ID:32-60-106093 target:7754<UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default> attributes:[
<RBSHereditaryGrant| endowmentNamespace:com.apple.boardservices.endpoint-injection UIScene:com.apple.frontboard.systemappservices::com.apple.springboard>,
<RBSHereditaryGrant| endowmentNamespace:com.apple.frontboard.visibility UIScene:com.apple.frontboard.systemappservices::com.apple.springboard>
]>
Assertion 32-60-106093 (target:[application<#myAppName#>:7754](UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default)) will be created as active
Calculated state for application<#myAppName#>: none (role: UserInteractiveNonFocal)
Finished acquiring assertion 32-60-106093 (target:[application<#myAppName#>:7754](UIScene:com.apple.frontboard.systemappservices::sceneID%3A#myAppName#-default))
[sceneID:#myAppName#-default] Setting deactivation reasons to: 'appSwitcher, systemAnimation' for reason: updateAllScenesForBand - Assertion added.
[sceneID:#myAppName#-default] Setting deactivation reasons to: 'appSwitcher' for reason: updateAllScenesForBand - Assertion removed.
4.重新启动我的iPhone后,一切又恢复正常。
这个bug最近出现了好几次,但我之前没有遇到过这种问题。
它是 SpringBoard 中的错误吗?或者它是我的应用程序中的一个错误,我该怎么做才能修复它?
谢谢。
解决方案
推荐阅读
- java - 如何转换可选
到 OptionalInt - python - 模块 'coco' 没有属性 'cocoConfig'
- javascript - 赫罗库 || 错误 R10(启动超时)-> Web 进程未能在启动后 60 秒内绑定到 $PORT
- python-3.x - Pytest unittest 函数不返回任何值
- azure - 要求打印时使用苛刻的 azure key-vault secret.name
- konvajs - Konvajs 中是否提供 Sharpness 过滤器,如果有如何使用它?
- sql - 在 SSRS 的 last 中显示特定值
- python - 如何根据部门汇总员工并使用 groupby pandas 显示每个部门的平均工资?
- java - (Java) 生成关联规则的所有前件
- javascript - 打字稿:无法从另一个文件导入对象