Com.Apple.Webkit.Webcontent Drops 113 Error: Could Not Find Specified Service

Could not signal service com.apple.WebKit.WebContent

Set value @"false" for cookie property @"HttpOnly", just like this :

 NSHTTPCookie *cookieWID = [NSHTTPCookie cookieWithProperties:[NSDictionary dictionaryWithObjectsAndKeys:
@"wid" ,NSHTTPCookieName,
WID,NSHTTPCookieValue,
@"www.google.com",NSHTTPCookieDomain,
@"",NSHTTPCookiePath,
@"false",@"HttpOnly",
nil]];

Does WKWebView require a URL?

I'm still getting the same error, but I am at least seeing my content now ...

The issue had to do with where I was calling the webView.loadHTMLString. I had to move it inside of my URLSession code instead of keeping it outside.

URLSession.shared.dataTask(with: url) { (data, response, err) in
guard let data = data else { return }

if err == nil {
do {
let decoder = JSONDecoder()
let devo = try decoder.decode(Devotion.self, from: data)

DispatchQueue.main.async {
self.articleBody = devo.body
self.webView.loadHTMLString("\(self.articleBody)", baseURL: nil)
}
} catch let err {
print("Err", err)
}
}
}.resume()


Related Topics



Leave a reply



Submit