I am using Xcode v7.2.1, Simulator v9.2.
I have a UIViewController that shows a map and should get my location and show it on the map:
import UIKit import MapKit class LocationVC: UIViewController, MKMapViewDelegate { @IBOutlet weak var map: MKMapView! let locationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() map.delegate = self } override func viewDidAppear(animated: Bool) { if CLLocationManager.authorizationStatus() == .AuthorizedWhenInUse { map.showsUserLocation = true } else { locationManager.requestWhenInUseAuthorization() } } }
I added NSLocationWhenInUseUsageDescription to NSLocationWhenInUseUsageDescription , as shown below:

I also selected Debug โ Location โ Custom Location ... and set the longitude and latitude of Helsinki, Finland, as shown below: 
When I launch my application, a map is displayed , but it does not get my location . What for? (I mean that I do not see the blue dot anywhere on the map).
===== UPDATE ====
I also tried this one when my application is running, however this does not help either.
ios ios8 xcode7 ios-simulator mkmapview
Leem.fin
source share