Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 635
inexcitus Avatar asked Oct 09 '18 17:10

inexcitus


2 Answers

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.

like image 52
Michael Young Avatar answered Oct 17 '22 18:10

Michael Young


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

$ xcrun simctl erase all
like image 4
bkeepers Avatar answered Oct 17 '22 17:10

bkeepers