When loading the URL in WKWebView, it leads to a security warning and later app gets crashes.
Warning in UIApplicationMain -
This method should not be called on the main thread as it may lead to UI unresponsiveness.
How can I resolve this issue?
When loading the URL in WKWebView, it leads to a security warning and later app gets crashes.
Warning in UIApplicationMain -
This method should not be called on the main thread as it may lead to UI unresponsiveness.
How can I resolve this issue?
Good in-depth reply from an Apple employee on the forums.
The poor interaction between WKWebView, Security framework, and this Xcode feature is a known issue (r. 94019453). We plan to address it at some point but I don’t have any info to share as to when that’ll happen.
Apparently, it is either an Xcode bug or an unnecessary "perfect optimization" notification.
As I'm writing, there isn't any reported solution on the Apple developer website.
You can see a good discussion on UI unresponsiveness" warning on @main.