Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS GPS Spoofer

DISCLAIMER: This project is intended strictly for educational, research, and development purposes. The techniques and code provided are designed to help developers simulate GPS locations in controlled environments for legitimate testing, debugging, or demonstration purposes. Misuse of this technology — such as employing it to deceive, commit fraud, or violate any local, state, or federal laws — is strictly prohibited. Always ensure that you comply with all applicable terms of service and legal regulations when using this tool.

Overview

Spoof your iOS device's GPS location and simulate movement along routes using Xcode and Python.

Requirements

  • Mac with Xcode
  • iOS device with Developer Mode enabled
  • Google Maps API key (free tier sufficient)
  • Python 3 with gpxpy and polyline libraries

Setup

1. Xcode Project

  1. Create a new iOS App project in Xcode (SwiftUI), keep all the default code
  2. Connect your iPhone via cable
  3. Enable Developer Mode on iPhone: Settings → Privacy & Security → Developer Mode → Enable → Restart
  4. Trust developer certificate: Settings → General → VPN & Device Management → Developer App
  5. Run the empty app on your device to verify setup

2. Python Environment

Install required libraries:

pip install gpxpy polyline

3. Google Maps API

  1. Get an API key from Google Maps Platform
  2. Copy the .env.example to .env and add your API key:
GOOGLE_MAPS_API_KEY=YOUR_API_KEY_HERE

Usage

  1. Run the Python script and enter route details:

    Enter the origin address: CN Tower, Toronto, Ontario
    Enter the destination address: CF Toronto Eaton Centre
    Enter the number of minutes to pause at the destination: 60
    
  2. The script generates route.gpx in the same directory.

  3. In Xcode, with your app running on the device:

    • Go to Debug → Simulate Location → Add GPX File to Project
    • Select your generated route.gpx file
    • Choose the custom route from the dropdown
  4. Your iPhone will now follow the simulated route

Notes

  • The iPhone must remain connected to Xcode and running the app for location spoofing to work
  • You can use Apple's preset locations via Debug → Simulate Location without custom GPX files
  • Update the path variable in the Python script to specify GPX output location

This project was inspired by an article: https://medium.com/@kabirplanes/building-an-iphone-gps-spoofer-with-xcode-python-e849c10d634d

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages