Updated to Xcode 14.0 and built with iOS 16 device.
In purple it says "[Security] This method should not be called on the main thread as it may lead to UI unresponsiveness." A warning is displayed.
location is
@UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate {...
There is a part where it is difficult to know exactly which function it is because a warning is displayed at the location.
I also replaced the admob library with the latest version, but I have the same problem.
Does anyone know the cause of this issue?
I need help.
This is the cause of this problem I have identified.
First of all, this problem occurs with apps that use the admob library.
Among the apps I sell, there is a paid app with a different target (same code) in the same project. When I build this paid app in my project, I don't see this warning.
My paid app uses "Other Swifts Flag" to not include the admob library in the code from the build generation, and the admob library is not included in the app.
I contacted Admob and got a reply.
Admob is also aware of this issue. Admob believes it's a bug by Apple, and Apple is also aware of this bug. Maybe it will be improved in the next Xcode or iOS update.
My guess is that when using WKWebView in Admob, you get such a warning message.