1. Go to Edit Scheme.
  2. Select Run -> Options.
  3. Check “Allow Location Simulation”.
  4. Select the *.GPX File Name from the “Default Location” drop down list.

https://i.stack.imgur.com/NxJyr.png