Post

Replies

Boosts

Views

Activity

Reply to @UIApplicationMain in AppDelegate.swift crash
I got the same issue "JSC::JSValue WebCore::wrapWebCore::DOMException(JSC::JSGlobalObject*, WebCore::JSDOMGlobalObject*, WebCore::DOMException&) ()" when I tried to inject this kind of code to userContentController, it was used to capture log from console of the web view. .... let source = "function captureLog(msg) { window.webkit.messageHandlers.logHandler.postMessage(msg); } window.console.log = captureLog; console.log("injected");"     let script = WKUserScript(source: source, injectionTime: .atDocumentEnd, forMainFrameOnly: false)     webView.configuration.userContentController.addUserScript(script) .....     webView.configuration.userContentController.add(self, name: "logHandler") .... Then I removed the function, and the crash was gone. (already tried to set the web view delegate to nil)
Feb ’23