I got the same "deadlock" warning and my app froze on its start-up screen. Forced it to quit, and then (after the app was gone) the pop up asking for motion permission popped up. Restarted app and it worked. But, this is not a "fix" as it requires the app to crash first before it works.
Post
Replies
Boosts
Views
Activity
Where does this code go? I dropped it into my app and got 4 compiler errors:
Cannot find 'self' in scope; did you mean to use it in a type or extension context?
Cannot infer contextual base in reference to member 'main'
Cannot infer contextual base in reference to member 'now'
Cannot infer contextual base in reference to member 'now'
Thanks! Wow, that's hours of my life I'll never get back....
I updated to OS 13.0.1 and Xcode to 14.1. My app now reports this same error "This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first." and traces it to this bit of code:
if CLLocationManager.locationServicesEnabled(). So, I implemented the suggested fix, but the complier says that authorizationStatus was deprecated in iOS 14.0