且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

com.apple.WebKit.WebContent丢弃113错误:找不到指定的服务

更新时间:2023-01-01 15:25:20

最后,解决了上面的问题。我收到错误

Finally, solved the problem above. I was receiving errors


  • 无法发出服务信号com.apple.WebKit.WebContent:113:找不到指定的服务

  • Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

因为我没有在视图上添加 WKWebView 对象作为子视图并尝试在其顶部调用 -loadHTMLString:baseURL:。只有在成功加载后,我才将其添加到视图的子视图中 - 这是完全错误的。我的问题的正确解决方案是:

Since I have not added WKWebView object on the view as a subview and tried to call -loadHTMLString:baseURL: on the top of it. And only after it was successfully loaded I was adding it to view's subviews - which was totally wrong. The correct solution for my problem is:

1。添加 WKWebView 对象以查看子视图数组

2. 调用 -loadHTMLString:baseURL:最近添加了 WKWebView