How to use fake GPS on iOS devices

How to use fake GPS on iOS devices

Here's a simple guide to use fake GPS on iOS devices using Xcode:

  • Launch Xcode and click on the Create a new Xcode project.
  • Select Single View App option and click on the Next button.
  • Enter a “Product Name” and click on the Next button.
  • Click on the File menu. Navigate to New and click on the File option.?

  • Search “gpx” in the filter option and select the GPX file.
  • Click on the Next button and create the GPX file.

  • Navigate to the Product menu to Destination.
  • Select the device for emulating fake GPS.
  • Navigate to the Product menu.
  • Click on the Build option and Run option later.

  • Open the .gpx file.
  • Set lat and lon in the .gpx file
  • Click on the Save option from the File menu.
  • Expand Debug menu and navigate to Simulate Location option.
  • Select the previously created .gpx file.

A device should mock its current location according to lat and lon set in the .gpx file.

Note(s):

  • This method does not permanently change the GPS location and only works while Xcode is running.

要查看或添加评论,请登录

Anwar Hasan Shuvo的更多文章

社区洞察

其他会员也浏览了