How to deploy/publish iOS Apple Store without using UIWebView

Hi guys,

Since last month apple denies all the apps/games using UIWebView. Now they demand the use of WKWebView, so no more Cordova deploy/publish.

I already tried to create blank swift project on Xcode, importing the RPGMV "www" folder to the Xcode project folder, adding a web view to the main.storyboard, and linking it with the following code in ViewController.swift with nonsuccess. The game loads, but gives an error.

Swift:
import UIKit
import WebKit

class ViewController: UIViewController {

    @IBOutlet var webview: WKWebView!
    
    override func viewDidLoad() {
        super.viewDidLoad()
        let url = Bundle.main.url(forResource: "index", withExtension: "html", subdirectory: "www")!
        let request = URLRequest(url: url)
        
        webview.scrollView.isScrollEnabled = false
        webview.loadFileURL(url, allowingReadAccessTo: url)
        webview.load(request)   
    }   
}

Is there any other solution/workaround for this?

Thanks in advance
I Would like to know this as well. Getting same error.. ;(
HEYYY. I FIGURED IT OUT! See this -> https://github.com/TheMattRay/cordova-plugin-wkwebviewxhrfix

Original thread: https://forums.rpgmakerweb.com/threads/how-to-deploy-publish-ios-apple-store-without-using-uiwebview.121523/