ios7locationios-simulatorxcode5preset

Customize iOS Simulator preset locations to fake as current location


In the iOS simulator, one can select from some Apple pre-defined locations, or enter a custom latitude/longitude for your own location.

I want to customize that list of available locations. I see from this answer that one can provide a gpx file. However, I don't see where to do this in Xcode5 (the screenshots shown in the linked to answer are for Xcode 4).

Suggestions?

enter image description here


Solution

  • EDIT: Another way to achieve this to edit your run scheme and select options. and provide GPX file in default location dropbox.Make sure that allow location simulation is enabled.

    https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/iOS_Simulator_Guide/CustomizingYourExperienceThroughXcodeSchemes/CustomizingYourExperienceThroughXcodeSchemes.html#//apple_ref/doc/uid/TP40012848-CH6-SW1

    enter image description hereIt's at the bottom, in the debugger, an icon that looks like the GPS active icon (from iOS status bar).