title: Type 'AppDelegate' does not conform to protocol 'CLLocationManagerDelegate' - Swift in Xcode 6
body: <p>I am trying to use the <strong>significant-change location service</strong>. I am using Swift with XCode on OS Mavericks. I am attempting to enhance an iOS app that I built following a tutorial.</p>
  
  <p>In my <code>AppDelegate.swift</code> file I have created the following method to initialise my location manager service:</p>
  
  <pre><code>func initializeLocationManager() {
      // instance of location manager class
      var locationManager = CLLocationManager()
      locationManager.delegate = self // error here
      locationManager.desiredAccuracy = kCLLocationAccuracyKilometer
      locationManager.requestAlwaysAuthorization()
      locationManager.startUpdatingLocation()
  }
  </code></pre>
  
  <p>But on the 4th line of code, I get an error saying:</p>
  
  <blockquote>
    <p>Type 'AppDelegate' does not conform to protocol 'CLLocationManagerDelegate'</p>
  </blockquote>
  
  <p>Why am I getting this error? How do I fix this? </p>