There is a question Stackoverflow question talking about this but I tried adding the string in Info.plist and asked for locManager.request..InUse.... When I launch the app, I can see the alert view poping up but before I do anything(allow or do not allow), it gets dismissed and there is a warning message printed out in debug console.
a basic code skeleton is like the following: let locManager = CLLocationManager() locManager.requestwheninuseauthorization() // code to ask the map to track user location