Forum Discussion
Can I Spoof GPS Location on iPhone ( No Jailbreak Needed)
You can also create a GPX file (GPS exchange format) with custom coordinates and use Xcode to simulate it on your connected iPhone. Additionally, some users combine this with custom Apple Shortcuts that simulate location-based actions for testing, though this doesn’t change GPS system-wide.
Step 1: You can use a text editor to create a GPX file with the location you want to simulate. This can be used for spoofing location on iPhone.
<?xml version="1.0" encoding="UTF-8"?>
<gpx version="1.1" creator="Xcode">
<wpt lat="40.7128" lon="-74.0060">
<name>New York City</name>
</wpt>
</gpx>
Step 2: Drag and drop the .gpx file into the project’s sidebar.
Step 3: Right-click the project name → Add Files to “YourAppName” → Select your GPX file.
Step 4: Run your app on the iPhone (connect via cable and press Run.) This will let you freely fake iPhone GPS location.
Your iPhone now reports the fake location from the .gpx file to any apps requesting location.