title: Xcode 5 didupdatelocations not working
body: <p>I'm following this tutorial for creating a program that shows the location of a user. I've told Xcode to simulate a location for me already, and even on the simulator made sure it was allowing my application to keep track of locations. However, nothing is being logged to my console. </p>
  
  <p>The header file:</p>
  
  <pre><code>#import &lt;UIKit/UIKit.h&gt;
  #import &lt;CoreLocation/CoreLocation.h&gt;
  
  @interface WhereamiViewController : UIViewController &lt;CLLocationManagerDelegate&gt; {
      CLLocationManager *locationManager;
  }
  
  @end
  </code></pre>
  
  <p>And the main file:</p>
  
  <pre><code>#import "WhereamiViewController.h"
  
  @implementation WhereamiViewController
  
  - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  {
      self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  
      if (self) {
          locationManager = [[CLLocationManager alloc] init];
          [locationManager setDelegate:self];
          [locationManager setDesiredAccuracy:kCLLocationAccuracyBest];
          [locationManager setPausesLocationUpdatesAutomatically:NO];
          [locationManager startUpdatingLocation];
      }
  
      return self;
  }
  
  - (void)locationManager:(CLLocationManager *)manager
       didUpdateLocations:(NSArray *)locations
  {
      NSLog(@"%@", [locations lastObject]);
  }
  
  - (void)locationManager:(CLLocationManager *)manager
      didFailWithError:(NSError *)error
  {
      NSLog(@"Error: %@", error);
  }
  
  @end
  </code></pre>