• Stars
    star
    2,326
  • Rank 19,794 (Top 0.4 %)
  • Language
    Swift
  • License
    GNU General Publi...
  • Created about 5 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

MacOS application to spoof / fake / mock your iOS / iPadOS or iPhoneSimulator device location. WatchOS and TvOS are partially supported.

Warning:
I do not support beta versions of iOS. It is not clear if I will be able to support iOS 17. For more details click here.

Note:
If you use iOS 16 or greater you need to enable Developer Mode first. The Developer Mode option should show up in settings the first time you try to use your device with LocationSimulator, after you received the warning, that you must enable Developer Mode. You can read the following issue for more informations.

License: GNU General Public License version 3 Donate

LocationSimulator

LocationSimulator is a macOS app (10.15.x and later) which allows spoofing the location of an iOS or iPhoneSimulator device. The target audience of this project are developers who want to test their location service based application. I do not encourage the use of this application to cheat in iOS games and I do not provide support for these games. If you use this application outside of the intended purposes, you are on your own.

LocationSimulator screenshot

Background

While I originally planed to build upon the fantastic work of Watanabe Toshinori LocationSimulator I decided to recreate and change the whole project because of the projects (back then 18.08.19) missing license. I created all necessary images and source code files and removed all dependencies except for libimobiledevice. Even Xcode is not required anymore. You just need the DeveloperDiskImage.dmg and DeveloperDiskImage.dmg.signature files for your iOS Version.

Features

  • Spoof the iOS device location without a jailbreak or installing an app on the device.
  • Spoof the iPhoneSimulator device location.
  • Automatically try to download the DeveloperDiskImage files for your iOS Version.
  • Set the device location with a long click on the map.
  • Support custom and predefined (Walk/Cycle/Drive) movement speeds.
  • Control the movement using the arrow keys.
  • Navigate from the current location to a new location.
  • Support network devices.
  • Search for locations.
  • Support dark mode.

Note:
LocationSimulator will try to download the corresponding DeveloperDiskImage.dmg and DeveloperDiskImage.dmg.signature for your iOS Version from github, since I can not legally distribute these files. If the download should not work, get the files by installing Xcode and copy or link them to:

~/Library/Application Support/LocationSimulator/{YOUR_PLATFORM}/{MAJOR_YOUR_IOS_VERSION}.{MINOR_YOUR_IOS_VERSION}/

YOUR_PLATFORM might be iPhone OS (iPhone and iPad), Watch OS (Apple Watch) or Tv OS (Apple TV). MAJOR_YOUR_IOS_VERSION might 14 and MINOR_YOUR_IOS_VERSION might be 3 for a device running iOS 14.3.

As of v0.1.8 this folder moved to:

~/Library/Containers/com.schlaubi.LocationSimulator/Data/Library/Application Support/LocationSimulator/

As of v0.1.9 you can manage these files using the DeveloperDisk preferences tab.

Install

Download the latest release build from github to get the latest changes or

  1. Install homebrew by entering the following command in your terminal:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
  2. Install LocationSimulator with homebrew using:

    brew install locationsimulator

Build

Since this project has gotten quite big over time, I exported some of the code to other packages. The list below contains all additional projects I created to make this project possible. They should all be downloaded automatically by swift:

  • LocationSimulator-Localization: The LocationSimulator localization files.
  • LocationSimulator-Help: The LocationSimulator helpbook you see when you click on Help -> LocationSimulator Help.
  • LocationSpoofer: The backend code used to spoof the location of iOS or iPhoneSimulator devices.
  • XCF: The low level frameworks used by LocationSpoofer.
  • CLogger: A C / Objective-C / Swift logging library used by LocationSpoofer and LocationSimulator.
  • SuggestionPopup: A simple Apple maps like popup list UI written for AppKit to search for locations.
  • Downloader: A simple swift library to download files from the internet more easily.
  • GPXParser: A simple swift library to parse GPX files.

Requirements

  • macOS 10.15+
  • macOS 11.x+ SDK
  • swift 5.0+
  • swift-tools-version 5.2+
  • jekyll (and a symlink of jekyll to /usr/local/bin/jekyll)

Build the app

  1. Install the latest Xcode developer tools from Apple. (Using the AppStore is the easiest way)

  2. Clone this repository:

    git clone --recurse-submodules https://github.com/Schlaubischlump/LocationSimulator
  3. Open LocationSimulator.xcodeproj in Xcode.

  4. Let Xcode resolve all dependencies.

  5. Tap Run to build and execute the app.

Usage

Allow network devices (optional):

1. Make sure you can sync your device over Wi-Fi and access it inside the Finder.

Sync your content using Wi-Fi

After you set up syncing with the Finder using USB, you can set up the Finder to sync to your device with Wi-Fi instead of USB.

  1. Connect your device to your computer with a USB cable, then open a Finder window and select your device.

  2. Select “Show this [device] when on Wi-Fi."

  3. Click Apply.

When the computer and the device are on the same Wi-Fi network, the device appears in the Finder. The device syncs automatically whenever it's plugged in to power.

2. Make sure that "LocationSimulator" -> "Preferences..." -> "Network" -> "Allow network devices" is enabled

Start spoofing:

  1. Connect the iOS device to your computer via USB or Wi-Fi.
  2. Select the device in the sidebar.
  3. Long click the point you want to set as the current location on the map.

Moving:

  • Click the walk button at bottom left corner of the map. Drag the blue triangle to change the direction of movement.
  • Long click the walk button to enabled auto move. Click again to disable auto move.
  • Long click on a new point on the map while you are spoofing the location to show the navigation prompt or select the menu item to set the coordinates manually.
  • Use the left and right arrow keys to change the direction of movement. Use up and down to move. Press space to stop the navigation.

Stop spoofing:

  • Click the reset button.

License

The whole project is licensed under the GNU General Public License version 3 unless specified otherwise in the specific subdirectories.

Contribute

Since I maintain this project in my freetime, I always appreciate any help I get. Even if you are not a programmer and do not know anything about coding you can still help out. It would be great if more languages were available. If you know any other language and you are willing to invest some time to help with the translation let me know here! You can find the existing localization files here. I want this software to be as stable as possible, if you find any bug please report it by opening a new issue. If you are a programmer, feel free to contribute bug fixes or new features. It would be great if you run swift-lint on your code before submitting pull requests.

While you are here, consider leaving a Github star. It keeps me motivated.

Donate

Donations are always welcome! I will use the money to further develop the software in my free time and to fund the Apple Developer Membership to notarize the app. You can donate from inside the application or from the github page using the sponsor button. Choose Help -> Donate... or LocationSimualtor -> Preferences -> Info -> Donate to donate from inside the app. I'll add more donation options over time. Currently you can use PayPal or Ethereum.

Enhancement ideas

Look at the Projects tab to see a list of planned features for the next releases.

Acknowledgement

Special thanks to @bailaowai and his son for the Spanish and Chinese translation. @Rithari for the Italian translation, @devmaximilian for his continuous contributions to the Swedish translation, @Black-Dragon-Spirit for the dutch translation and @Chuck3CZ for the czech translation. Special thanks goes to @bslatyer as well for his debugging support and his quick responses, when new issues arise !

More Repositories

1

LocationSpoofer

A Swift package to spoof the location of iOS Devices or iPhoneSimulator devices.
Swift
27
star
2

Cookbook-Client

iOS/macOS/iPadOS application to view your cookbook recipes.
Swift
20
star
3

SuggestionPopup

A simple AppKit suggestion / autocompletion popup for macOS.
Swift
13
star
4

KivyFaceRecognition

Face detection and face recognition for the kivy camera class.
Python
8
star
5

shairport-metadatareader-python

A shairport-metadata-reader package written in Python, which supports reading the metadata from the pipe file, the UDP-server and the MQTT server if configured.
Python
8
star
6

cannons-algorithm

MPI implementation of cannons algorithm.
C++
7
star
7

Build-libimobiledevice

A hacky script which sometimes works and sometimes doesn't. It builds libimobiledevice for iOS arm64 and catalyst x86_64.
Shell
4
star
8

Downloader

A simple swift package to download files.
Swift
3
star
9

show-desktop

Simple python script to toggle the visibility of your desktop.
Python
2
star
10

KivyRealtimeBlur

Some shader experiments using kivys effect widget.
Python
2
star
11

XCF

XCFrameworks files required for LocationSpoofer.
C
2
star
12

GPXParser

Simple Swift GPXParser
Swift
2
star
13

DSeA

Abgaben für DSeA
TeX
1
star
14

ScrollBarDemo

A Mac Appstore like image or text scroller.
Swift
1
star
15

schlaubischlump.github.io

My personal website
HTML
1
star
16

CPlist

Swift package wrapper around libplist.
Swift
1
star
17

RMP

This is a catalyst demo application which implements a "Reiss Motivation Profile" quick test.
Swift
1
star
18

CUsbmuxd

A swift package wrapper for libusbmuxd
Swift
1
star
19

university_tools

Personal script to make my life at the University of Mainz (JGU) easier.
Python
1
star
20

CLogger

A simple swift wrapper for c-logger
C
1
star