iOS 17.5.1 Xcode WebKit Crash

iOS 17.5.1 Xcode WebKit Crash

Hello, I have two iPhone devices that I have.

These devices are iOS17.5.1, and all Wk related codes cause Crash.

Crash occurs when Xcode Build is complete and the app is running. If you run without connecting to Xcode, Crash does not occur.

Error: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x19e88fa18)

Xcode 15.4, MacBook Pro 14 Sonoma 14.5

There was no issue with iOS 16.5.

WKWebsiteDataStore.default()
            .fetchDataRecords(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes()) { records in
                records
                    .forEach {
                        WKWebsiteDataStore.default()
                            .removeData(ofTypes: $0.dataTypes,
                                        for: [$0],
                                        completionHandler: {})
                    }
            }
let webConfiguration = WKWebViewConfiguration()webConfiguration.preferences.javaScriptCanOpenWindowsAutomatically = true
iOS 17.5.1 Xcode WebKit Crash
 
 
Q