Post

Replies

Boosts

Views

Activity

Comment on iOS 17.4 (21E217) CMAltimeter not working
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'
May ’24
Comment on "UI unresponsiveness" warning on @main
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22
Comment on iOS 17.4 (21E217) CMAltimeter not working
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.
Replies
Boosts
Views
Activity
May ’24
Comment on iOS 17.4 (21E217) CMAltimeter not working
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'
Replies
Boosts
Views
Activity
May ’24
Comment on Add addtional document type
Thanks! Wow, that's hours of my life I'll never get back....
Replies
Boosts
Views
Activity
Apr ’23
Comment on "UI unresponsiveness" warning on @main
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
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22