Prepare for simulating GPS

  1. Download this repository from Github.
  2. Get the coordinates of the place you want to go. In this example, I want to simulate Reykjavik Airport in Iceland, which is 64.131933, -21.948947. You can easily find it in Google Maps.

Change latitude and longitude settings

Find heaven.gpx file in repository folder, and find code <wpt lat="64.131933" lon="-21.948947">. Change whereever you want to go.

Install in your iPhone

Change the project settings in upper left corner. Find Produce --> Scheme --> Eidt Scheme --> Options, change Default Location to heaven, and choose device to your iPhone. Install it!

Check it out

Open Google Maps, and you will find GPS is already changed to the location you set. Have fun!

Reference


This is the end of post