Search code examples
iosxcodexcode10ios12xcode10.1

Xcode 10 - iOS 12 Simulator location simulation fails on City Bicycle Ride/City Run/Freeway Drive


I just updated from Xcode 9 to Xcode 10 a day ago, and when I was about to debug my location tracking app just realized that I never received device location. So I went to Maps app to check if it was just a problem with my app, but when I turn location debug to any dynamic location (City Bicycle Ride/City Run/Freeway Drive) even Maps fails getting device's location (almost always), but when I set it to a static location (Apple) it works without any problem.

Location: Apple

Location: Apple

Location: City Bicycle Ride

Location: City Bicycle Ride

Location: City Run

Location: City Run

Location: Freeway Drive

Location: Freeway Drive

I'm the only one facing this issue or its actually a Xcode/Simulator problem?

EDIT: Still happening on Xcode 10.1


Solution

  • Still happening in Xcode 10.0, and the only thing that seemed to make it work was to have 'Allow Location Simulation' turned on in your scheme and toggling between 'Apple' and 'City Run' under your simulator's top menu:

    Debug > Location > Apple

    Debug > Location > City Run

    (back and forth between them until your run actually begins to simulate)

    • Obviously not a permanent solution, but it can save you hours of debugging your own code vs pulling your hair out, yelling at Apple. Though we should def yell at Apple for this one.