2

If I add a WKWebView in the storyboard, Xcode throws an error saying that it is not supported for iOS 10 and below. However, if I add it programmatically, everything works fine. Does that mean if I add it in the storyboard, my app will only work with iOS11 when shipped out to the App Store?

Matthew Cho
  • 103
  • 4
  • 8
  • Please check your deployment target. – Dheeraj D Apr 10 '18 at 08:51
  • Possible duplicate of [Xcode 9 GM - WKWebView NSCoding support was broken in previous versions](https://stackoverflow.com/questions/46221577/xcode-9-gm-wkwebview-nscoding-support-was-broken-in-previous-versions) – shim May 14 '18 at 20:51

1 Answers1

4

You can't make build if your deployment target is below iOS 11 and WKWebview added via Storyboard. But You can add WKWebview programmatically.

WKWebview available since iOS 9. Now only they provide the option to add WKWebview via Storyboard. But I don't know why Apple has this restriction.

Mani
  • 17,549
  • 13
  • 79
  • 100