Every time I run XCode, my location is being reset to a location in London. It doesn't recover until I reset my device.
How do I avoid this?
Tap Settings > General > Profiles or Profiles & Device Management. Under the "Enterprise App" heading, you see a profile for the developer. Tap the name of the developer profile under the Enterprise App heading to establish trust for this developer. Then you see a prompt to confirm your choice.
Causes of iPhone GPS Not Working. Some settings on the iPhone intentionally prevent GPS from working. Other causes for GPS not working are a weak signal, outdated maps data, or hardware failure. Although iPhone GPS issues are not common, they can occur after you update the iOS.
In the Settings app, tap Privacy, then tap Location Services. Make sure Location Services is on, and make sure Maps is set to While Using the App or Widgets. Set the date, time, and time zone correctly on your device.
This took me a month or two to spot and track down, so I am posting for the benefit of others. as Apple Customer Support were unable to diagnose it, and even went so far as to swap my device for a new one- which of course didn't help. There was nothing about this on Google.
I eventually diagnosed it by setting "Find My Friends" to geofence my real location and send a message when it spotted me leave. The second I started running my app on Xcode it pinged instantly.
There is a setting in XCode that sets the GPS to a chosen dummy location whenever you run your app. It can be found by selecting Product>Scheme>Edit Scheme from the top menu, then select "Run appname" on the left and "Options" at the top. The one you want is "Core Location: Allow Location Simulation."
Just uncheck that box. Problem solved.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With