inexcitus
inexcitus

Reputation: 2639

Location Simulation not working in Xcode 10 and iOS 12

I am developing an app that uses GPS. In the simulator I always used the location simulation feature of Xcode which always worked for me. I selected the Debug - Location - Freeway Drive option in Xcode 10. Whenever I select some preset to simulate, Xcode shows the following error:

[Client] #Spi, Interrupted

GPS is enabled on the simulated device and the app has permission to access the GPS. I already tried to restart the simulator multiple times, selected another device, but no device works. Does anyone have a solution to this?

Regards

Upvotes: 6

Views: 7587

Answers (7)

MikeS
MikeS

Reputation: 71

In the simulator, go into device settings / Privacy / Location Services. Toggle Location Services off and then back on.

Upvotes: 0

SwiftiSwift
SwiftiSwift

Reputation: 8717

Simply click City Bicycle Run and then City Run in Debug -> Location in the Simulator over and over again until it works. At least it worked for me that way

Upvotes: 2

Loup G
Loup G

Reputation: 189

This worked intermittently as a workaround for me:

On the simulator debug menu, select location and freeway drive (or whatever you want) several times until it starts to track the location.

It also helps to build the app on the simulator again

Good luck!

Upvotes: 1

bkeepers
bkeepers

Reputation: 2255

I was having this issue and reseting the simulators seems to have fixed it for now:

$ xcrun simctl erase all

Upvotes: 4

gutgemeint
gutgemeint

Reputation: 21

I'm suffering the same issue with Xcode 10.1 and iOS 12. Several restarts of the App and toggling between different locations (None, Apple, City Bicycle Ride) make it work again.

Quite annoying

Upvotes: 1

dhj01776
dhj01776

Reputation: 19

Looks like the location simulator has not been fixed in Xcode 10.1 update.

Upvotes: 0

Michael Young
Michael Young

Reputation: 414

Xcode 10 is broken with respect to Location Services in my experience. I've had to go back to 9.4 to develop and debug apps, but even then I have had problems with running apps originally modified with Xcode 10 running in iOS 12.

Apple is having serious, SERIOUS quality control issues and legacy issues with each new release of Xcode and iOS. I'm very frustrated and annoyed.

Upvotes: 10

Related Questions