Segmentation fault 11 when implementing WKScriptMessageHandlerWithReply

Hi, I'm trying to implement the async handler of WKScriptMessageHandlerWithReply -> see yellow box in this reference.

This is the method signature:

func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) async -> (Any?, String?)

But I end up with a Segmentation fault: 11 compilation error. I'm compiling with Xcode 13.4.1 (13F100). Did anybody successfully use this API or now a solution to fix it?

Answered by benrudhart in 732443022

This one was fixed, at least of Xcode 14.0 it seems to be working fine

Accepted Answer

This one was fixed, at least of Xcode 14.0 it seems to be working fine

Segmentation fault 11 when implementing WKScriptMessageHandlerWithReply
 
 
Q