Add GPS locations in GPX file and add GPX this file to your project. You can go to http://gpx-poi.com/ and simply fill the required data. Just go to Target → Edit scheme and select GPX file for a required location as default and build. If GPX file has a sequence of location then, Xcode will treat it as route and start navigation on the map as per given coordinates. So you can also select this route from Xcode by clicking Location Services icon in the jump bar of the debug area. And user navigation will be simulated as per given GPX points. This is a common yet one of the iOS tricky interview questions and answers for experienced professionals, don't miss this one.