To resolve the “Potential overridden instance method ‘evaluateJavaScript(_:completionHandler:)’ in WebKit.WKWebView” issue, locate the affected file and comment out the conflicting method.
///COMMENT IT
// public override func evaluateJavaScript(_ javaScriptString: String, completionHandler: ((Any?, Error?) -> Void)? = nil) {
// if let applePayAPIEnabled = options?.applePayAPIEnabled, applePayAPIEnabled {
// if let completionHandler = completionHandler {
// completionHandler(nil, nil)
// }
// return
// }
// super.evaluateJavaScript(javaScriptString, completionHandler: completionHandler)
// }
@available(iOS 14.0, *)
Other Article: