com.apple.WebKit.WebContent丢弃113错误:找不到指定的服务 [英] com.apple.WebKit.WebContent drops 113 error: Could not find specified service

查看:9950
本文介绍了com.apple.WebKit.WebContent丢弃113错误:找不到指定的服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 WKWebView 来查看自定义HTML。

I am using WKWebView for viewing custom HTML.


  • 无论HTML内容如何,​​在真实设备上进行测试时,都会收到以下错误无法发出服务信号。 apple.WebKit.WebContent:113:在 WKWebView 内容加载后29秒内找不到指定的服务,有时我甚至会收到两次此错误。显然,这是一个配置问题。我按照无法发出服务信号com.apple.WebKit的建议检查了Cookie .WebContent ,但它没有帮助

  • 另一个问题是,是否存在可能在 WKWebView <中弹出的所有错误代码的列表/ li>
  • Regardless of HTML content, when testing on real device, I receive the following error Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service in 29 sec after WKWebView content loaded, sometimes I even receive this error twice. Clearly, it is a configuration issue. I have checked cookies as proposed in Could not signal service com.apple.WebKit.WebContent, however it doesn't help
  • Another question is whether there exist a list of all error codes that might pop up in WKWebView

推荐答案

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

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

这篇关于com.apple.WebKit.WebContent丢弃113错误:找不到指定的服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆