Greetings to all.
After upgrading to Xcode 14.1 my app that is on deployment target iOS 13 and above gets the warning :
This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first
After reading some answers in StackOverflow it is suggested to wrap it in DispatchQueue.global however due to the complexity of my app and my current use case I cannot use it in this manor.
The warning only appears in the latest Xcode 14.1 in Xcode 13.XX the warning does not appear.
Is there any way to silence the warning without wrapping it in a DispatchQueue or using the delegate method?
Thanks for the help.