[iOS 14][WebKit] WKWebView’s createWebArchiveData returns nil in Objective-C

WKWebView’s createWebArchiveData method should invoke the completion handler with a Non-NULL Data which would contain the web-archive data of the web-page, or, a Non-NULL error if any error occurs.

But instead, the method calls the completion handler with a NULL data and a NULL error.

Other observations:
  1. In Swift, WKWebView’s createWebArchiveData method does return a valid result and the result.get() call does return a valid data. But passing this data to an UIActivityViewController as an Activity Item does not recognize the web-archive data.

  2. WKWebView’s createPDFWithConfiguration method works as expected.