How to set the location in the iOS simulator without writing code?

add a .GPX file to your project, and use XCode's location simulation feature. You can set up the location simulation as part of your scheme, so it's in place at launch time. Look under Edit Scheme, select "Run" at left, go to Options tab.


You can Simulate Location Position with Xcode:

enter image description here

From here, if you stops the build sometimes is returning to Don't Simulate Location.

However, clicking Run, while the app is running, Xcode asks you to Stop and Run, click Stop and the Simulator runs again the build. This time, for sure, with your Location.


My solution turned out to be easy

Click on the name of the project (next to the run and stop buttons in the top left of the Xcode screen) and select Edit Scheme.

Go to the options pane.

The first thing is Core Location allow Location simulation. Then below that set Default Location to the one you want.

Done