meismyles / SwiftWebVC

A drop-in inline browser for your Swift iOS app.
MIT License
330 stars 117 forks source link

SwiftWebVC never loads some urls, Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service #32

Closed kennywyland closed 6 years ago

kennywyland commented 6 years ago

Trying SwiftWebVC out for the first time and I'm having a problem loading certain pages. This is how I show it:

let webVC = SwiftWebVC(urlString: "http://www.udwa.org/our-union/")
webVC.delegate = self
self.navigationController?.pushViewController(webVC, animated: true)

The delegate call back tells me that it started loading, after 30 seconds I get the following in the console:

2017-10-14 11:57:05.941522-0700 udw[61741:29492827] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service 2017-10-14 11:57:05.942308-0700 udw[61741:29492827] Could not signal service com.apple.WebKit.Networking: 113: Could not find specified service

I tried several other URLs:

  1. https://www.google.com/ : worked, doesn't print the WebContent error above
  2. https://github.com/meismyles/SwiftWebVC : worked, doesn't print the WebContent error above
  3. http://www.inadaydevelopment.com : failed. This is my company's website, a WP site hosted in Google's cloud.
  4. http://herdboss.com/ : failed. This is another company I'm part of, a drupal site hosted at Rackspace.
  5. http://garyjohnston.com/ : failed. A friend's website, a WP site. Not sure where it's hosted, but it's a different server from 3 and 4 above.

I get the same behavior when using the SwiftModalWebVC.

Any help is appreciated.

screen shot 2017-10-14 at 11 48 30 am
kennywyland commented 6 years ago

Turns out that it was because my App Transport Security wasn't configured. So, not your bug.

However, if you potentially intercept the ios error that indicates and print something to the console that would be helpful. I discovered the problem by just trying to use the old UIWebView to see if those sites would load normally that way and that's when I got the error in the console that led me to the answer.