使用画外音时崩溃

问题描述 投票:0回答:1

仅在使用Voiceover时崩溃,在关闭时性能良好

仅在XCode 11和iOS 13上发生

void SendDelegateMessage(NSInvocation *): delegate (webView:resource:didFinishLoadingFromDataSource:) failed to return after waiting 10.000000 seconds. main run loop mode: kCFRunLoopDefaultMode

nw_connection_receive_internal_block_invoke [C26] Receive reply failed with error "Operation canceled"

Message from debugger: Terminated due to memory issue

这是控制台中显示的最后一个内容,然后程序崩溃

crash voiceover ios13 xcode11
1个回答
0
投票

[我也遇到了iOS 13.0和13.1崩溃的问题,但是使用语音控制而不是VoiceOver。

由于某些原因,如果在启用语音控制后启动应用程序,则在将rootViewController分配给窗口之后立即调用viewDidLoad()。

通常从主目录(而不是在分配rootViewController之后,从主目录调用它(如果已禁用语音控制并且在iOS的早期版本中)。

我使用hack而不是像这样的实际解决方案来解决我的崩溃:

let root = YourUIViewController()

如果启用了语音控制,这将在iOS 13上崩溃

window?.rootViewController = UINavigationController(rootViewController: root)

这不会在启用了语音控制的iOS 13上崩溃

let mainWindow = UIWindow()
mainWindow.rootViewController = UINavigationController(rootViewController: root)
window = mainWindow

对我来说似乎是iOS 13.1的错误。但是我不确定这实际上是错误还是新功能。

© www.soinside.com 2019 - 2024. All rights reserved.