WebKit 断言“错误”关闭 ViewController 后
所以我有一个带有一些视图和 WKWebView 的 XIB 文件。
该文件链接到 UIViewController 类。
一切正常,所有功能都正常。但是,在关闭 ViewController 后,我收到以下错误:
2022-03-12 14:19:18.380104+0100 Example[13697:342765] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-03-12 14:19:18.380401+0100 Example[13697:342765] [ProcessSuspension] 0x1084ea780 - ProcessAssertion: Failed to acquire RBS assertion 'GPUProcess Background Assertion' for process with PID=13705, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-03-12 14:19:18.390251+0100 Example[13697:342765] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-03-12 14:19:18.390709+0100 Example[13697:342765] [ProcessSuspension] 0x1084fe120 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=13702, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-03-12 14:19:48.280532+0100 Example[13697:342532] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2022-03-12 14:21:29.545076+0100 Example[13697:344267] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-03-12 14:21:29.545356+0100 Example[13697:344267] [ProcessSuspension] 0x1084fe2a0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=13721, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-03-12 14:21:29.562582+0100 Example[13697:344267] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-03-12 14:21:29.562851+0100 Example[13697:344267] [ProcessSuspension] 0x1084fe360 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=13721, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-03-12 14:21:59.476480+0100 Example[13697:342532] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
应用程序保持正常运行,因此没有致命异常。
对我来说,看起来由于 WebView 是在 ViewController 内部初始化并链接的,所以它在后者解除时被释放。但我的猜测是这是正确的行为。
但似乎有东西在释放后试图调用 WKWebView,但我不知道那是什么。
请帮忙!谢谢。
So I have a XIB file with some views and a WKWebView.
This file is linked to a UIViewController class.
Everything works fine, all the functionalities work. However, upon dismissing the ViewController I get these errors:
2022-03-12 14:19:18.380104+0100 Example[13697:342765] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-03-12 14:19:18.380401+0100 Example[13697:342765] [ProcessSuspension] 0x1084ea780 - ProcessAssertion: Failed to acquire RBS assertion 'GPUProcess Background Assertion' for process with PID=13705, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-03-12 14:19:18.390251+0100 Example[13697:342765] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-03-12 14:19:18.390709+0100 Example[13697:342765] [ProcessSuspension] 0x1084fe120 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=13702, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-03-12 14:19:48.280532+0100 Example[13697:342532] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
2022-03-12 14:21:29.545076+0100 Example[13697:344267] [assertion] Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}>
2022-03-12 14:21:29.545356+0100 Example[13697:344267] [ProcessSuspension] 0x1084fe2a0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=13721, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
2022-03-12 14:21:29.562582+0100 Example[13697:344267] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}>
2022-03-12 14:21:29.562851+0100 Example[13697:344267] [ProcessSuspension] 0x1084fe360 - ProcessAssertion: Failed to acquire RBS assertion 'ConnectionTerminationWatchdog' for process with PID=13721, error: Error Domain=RBSAssertionErrorDomain Code=2 "Specified target process does not exist" UserInfo={NSLocalizedFailureReason=Specified target process does not exist}
2022-03-12 14:21:59.476480+0100 Example[13697:342532] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service
The app keeps running normally, so no fatal exception.
To me, it looks like since the WebView is initialised and linked inside the ViewController, it's deallocated on the latter's dismissal. But my guess is that this is the correct behaviour.
But it looks like something is trying to call the WKWebView after it's deallocated and I don't know what that is.
Please Help! Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论