自从我安装了 iOS 13.2 beta 后,我一直收到调试控制台错误消息。每次我在情节提要中加载带有 WKWebView 对象的 ViewController 时都会发生这种情况。
然后在 web 视图可见时连续显示以下消息…
2019-10-10 12:10:47.867830+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:47.908698+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:47.908814+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:47.934169+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:47.947668+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:47.964375+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.193556+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.193723+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.193941+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.194012+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.195679+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.200432+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.207225+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.207298+0200 (...) [Process] kill() returned unexpected error 1
在我关闭视图的那一刻,我收到以下消息:
2019-10-10 12:32:41.577505+0200 (...)[ProcessSuspension] 0x1051e50b0 - ProcessAssertion::processAssertionWasInvalidated()
有时我在加载 web 视图时在中间收到以下消息:(我不能说它什么时候发生)
2019-10-10 12:33:11.453528+0200 (...) Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2019-10-10 12:33:11.459713+0200 (...) Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service
如果我触摸屏幕它会重新开始
2019-10-10 12:10:48.200432+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.207225+0200 (...) [Process] kill() returned unexpected error 1 2019-10-10 12:10:48.207298+0200 (...) [Process] kill() returned unexpected error 1 ...
我已经检查过我的应用程序的所有带有 WKWebViews 的视图控制器中都发生了这种情况,所以这似乎不是代码错误。
这 不会使应用程序崩溃 ,但我想知道为什么会这样,以及其他人是否有同样的问题。
这是 WebKit(或底层操作系统本身)中的一个错误。不,它 没有 在 13.[2,3] 版本中修复。
看:
更新:
它已在 13.4 版本中修复。