
You can simulate a location for your app when it runs in Xcode using the Run scheme action.
In the main window, choose Edit Scheme from the scheme menu in the toolbar.
In the left column, select the Run scheme action, then click Options.
If necessary, select the Allow Location Simulation checkbox under Core Location.
Choose a location from the Default Location pop-up menu:
None: Don’t simulate a location.
[City, Country]: Simulate the location of the city.
Add GPX File to Project: Use a GPS Exchange Format file that simulates the location data.
If you choose this option, choose a GPX file and click Add in the dialog that appears. A GPX file may have a series of waypoints using the GPX waypoint (wpt) tag but the route (rte) and track (trk) tags are not supported.
Click Close.