Problems with location swift 3
<p>i want to make a simple iOS app, using location data. Unfortunately, while testing both on device and simulator, I receive 'nil', even if I enters "Current Location" debug code on simulator. 
It my first time working with CoreLocation on swift 3, so I used the same approach, as I used previously.</p>

<pre><code>import UIKit
import CoreLocation

class ViewController: UIViewController, CLLocationManagerDelegate {

    @IBOutlet weak var latitudeLabel: UILabel!
    @IBOutlet weak var longitudeLabel: UILabel!

    var locationManager:CLLocationManager?
    var currentLocation:CLLocation?

    override func viewDidLoad() {
        super.viewDidLoad()
        let locationManager = CLLocationManager()
        locationManager.delegate = self
        locationManager.desiredAccuracy = kCLLocationAccuracyBest
        locationManager.requestAlwaysAuthorization()
        locationManager.startUpdatingLocation()
        updateLabels()
        // Do any additional setup after loading the view, typically from a nib.
    }

    func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
        self.currentLocation = locations[0]
    }

    func locationManager(_ manager: CLLocationManager, didFailWithError error: Error) {
        print(error)
    }

    func updateLabels() {
        latitudeLabel.text = String(describing: currentLocation?.coordinate.latitude)
        longitudeLabel.text = String(describing: currentLocation?.coordinate.longitude)
        print(currentLocation)
}

}
</code></pre>

<p>Of course, I've wrote all necessary Privacy Keys in Info.plist. </p>

<p>When I'm trying to print currentLocation I receives nil. 
With the last launch I found such problem, than an alert is appearing, but immediately dissapears</p>