title: Swift : Trying to start MapKit location updates without prompting for location authorization
body: <p>I'm using XCode 7.0 Beta and Swift.</p>
  
  <p>I'm using MKMapView to display some places on a Map. Everything is ok : I see the Map and the place on the Map but I've the following error message :</p>
  
  <blockquote>
    <p>Trying to start MapKit location updates without prompting for location
    authorization. Must call -[CLLocationManager
    requestWhenInUseAuthorization] or -[CLLocationManager
    requestAlwaysAuthorization] first.</p>
  </blockquote>
  
  <p>In the Info.plist file, I've added NSLocationAlwaysUsageDescription and NSLocationWhenInUseUsageDescription (see screenshot)</p>
  
  <pre><code>&gt; &lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE plist PUBLIC
  &gt; "-//Apple//DTD PLIST 1.0//EN"
  &gt; "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; &lt;plist
  &gt; version="1.0"&gt; &lt;dict&gt;     &lt;key&gt;NSLocationAlwaysUsageDescription&lt;/key&gt;
  &gt;   &lt;string&gt;Test is NSLocationAlwaysUsageDescription&lt;/string&gt;
  &gt;   &lt;key&gt;NSLocationWhenInUseUsageDescription&lt;/key&gt;  &lt;string&gt;This is
  &gt; NSLocationWhenInUseUsageDescription&lt;/string&gt;
  </code></pre>
  
  <p>In viewDidLoad, I've the following code</p>
  
  <pre><code>import UIKit
  import MapKit
  import CoreLocation
  
  class ViewController: UIViewController {
  
      @IBOutlet weak var btn: UIButton!
      @IBOutlet weak var Map: MKMapView!
  
      @IBAction func btnClick(sender: AnyObject) {
  
      }
  
      override func viewDidLoad() {
  
          super.viewDidLoad()
  
          let locationManager = CLLocationManager()
  
          var CLAuthStatus = CLLocationManager.authorizationStatus()
  
          if(CLAuthStatus == CLAuthorizationStatus.NotDetermined) {
              locationManager.requestAlwaysAuthorization();
          }
  </code></pre>
  
  <p>When I run the code, in the simulator, I don't have any warning or any prompt to ask me the authorisation.</p>
  
  <p>What's wrong ?</p>
  
  <p>Thanks in advance</p>
  
  <p>Have a nice day</p>
  
  <p>Ghislain</p>