iosswiftlocationgpx

How to fake location iOS


I want to change real location (fake location) on iphone with out jaibreak (not Simulator). So I think I can add GPX by code. Any suggest or other solutions?


Solution

  • As @paulw11 says, you have to run your app from Xcode with the device tethered to a USB cable.

    Create one or more GPX files and add them to the project. Then in the Xcode debug menu there is an option to simulate location. If you pick one of your GPX locations the device's GPS shows that location.

    There is also a option in the scheme editor that lets you pick a default location to use on launch.