ios - 为什么我收到控制台警告 : [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13. 2?

标签 ios objective-c wkwebview ios13

自从我安装了 iOS 13.2 beta 以来,我一直收到调试控制台错误消息。每次我在 Storyboard 中加载带有 WKWebView 对象的 ViewController 时,都会发生这种情况。

然后,当网页 View 可见时,会连续显示以下消息 ...

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 

当我关闭 View 时,我收到以下消息:

2019-10-10 12:32:41.577505+0200 (...)[ProcessSuspension] 0x1051e50b0 - ProcessAssertion::processAssertionWasInvalidated() 

有时,在加载 WebView 时,我会在中间收到以下消息:(我不能说它是什么时候发生的)

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 的 View Controller 中都发生了这种情况,因此这似乎不是代码错误。

不会使应用程序崩溃,但我想知道为什么会发生这种情况,以及其他人是否也遇到同样的问题。

最佳答案

这是 WebKit(或底层操作系统本身)中的一个错误。 不,它在 13.[2,3] 版本中修复。

参见:

<小时/>

更新:

该问题已在 13.4 版本中修复。

关于ios - 为什么我收到控制台警告 : [Process] kill() returned unexpected error 1 when I load a WKWebView in iOS13. 2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58321114/

相关文章:

ios - WKWebView授权

macos - 在 macOS 中使用 WKWebView 加载 URL

iphone - 我仍然收到 "The executable was signed with invalid entitlements."错误

ios - SpriteKit View 抛出 NSInvalidArgumentException

ios - SimpleAuth 不在 Instagram 上显示登录屏幕

iphone - iOS将字符串发送到JSON服务器

ios - SwipeCellKit 不滑动

Facebook 请求工作需要 iPhone App Store ID?

ios - 为什么 ivars 不像属性那样具有属性

swift WKWebView : Can't find variable error when calling method