I have a new app that I am starting using the Map() component in iOS17. That struct, creates a class which is a CLLocationManagerDelegate, and instantiates a CLLocationManager. In the Target's Info settings, I have
Privacy - Location Always and When In Use Usage Description
Privacy - Location Always Usage Description
Privacy - Location Usage Description
all three set.
I have another Map app with these set which doesn't have this problem, so I am confused about why, in Privacy & Security->Location Services, the App only shows two selections for Location Services. It shows only "Never" and "When I Share" selections with "When I Share" selected. The location manager reports
error: The operation couldn’t be completed. (kCLErrorDomain error 1.)
after I get the
CLAuthorizationStatus(rawValue: 0) auth=CLAccuracyAuthorization(rawValue: 0)
value in
public func locationManagerDidChangeAuthorization(_ manager: CLLocationManager)
status change in this callback for the delegate and then call:
manager.requestAlwaysAuthorization()
manager.startUpdatingLocation()
What am I missing here?