title: Accidentally overwrote iPhone device location via Xcode
body: <p>So I'm working on a location-based iPhone app. I'm mainly testing on the iOS simulator, and as such using the Core Location Simulation. All good - I can pretend to be in New York or San Francisco or wherever.</p>
  
  <p>Then I move to testing my app on my iPhone, with that checkbox still enabled. I go for a walk (in, like, the actual real world), pull out Google Maps, and realise that <strong>my actual, not-simulator iPhone is using a simulated location</strong>. In this instance my iPhone is stuck thinking that it's in London (where I live), but right central in Picadilly Circus, not where I am.</p>
  
  <p>I get home, open up Xcode, and to make sure I've nailed down the cause (rather than just a weird GPS bug etc), change the 'default location' to Johannesburg. Unplug my phone, open Google Maps (and Foursquare, to be sure), same deal. Stuck in Johannesburg.</p>
  
  <p><strong>So it's definitely this panel here that's borked my phone</strong>, but I can't figure out how to reset it.</p>
  
  <p>Things I've tried that don't seem to work:</p>
  
  <ul>
  <li>changing 'default location' to 'none' &amp; rerunning</li>
  <li>disabling 'allow location simulation' &amp; rerunning</li>
  </ul>
  
  <p>So it seems once you've given your iPhone an arbitrary location to pretend to be in, just disabling that doesn't fix it.</p>
  
  <p><img src="https://i.stack.imgur.com/BWBTH.png" alt="Location Simulation"></p>
  
  <p>Any ideas? I'm going travelling in a few days and really need my GPS to work!</p>