com.apple.WebKit.WebContent drops 113 error: Could not find specified service

Ievgen Gavrysh picture Ievgen Gavrysh · Jun 16, 2017 · Viewed 95.2k times · Source

I am using WKWebView for viewing custom HTML.

  • 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

Answer

Ievgen Gavrysh picture Ievgen Gavrysh · Jun 19, 2017

Finally, solved the problem above. I was receiving errors

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

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. Add WKWebView object to view's subviews array

2. Call -loadHTMLString:baseURL: for recently added WKWebView