Home How It Works FAQ What's New Blog Xcode Guide Download on the App Store
Xcode Guide

Test locations with Xcode

Apple Xcode can simulate GPS coordinates in a developer debug session. This separate Mac-based workflow is not performed by the Fake GPS app itself.

Developer workflow walkthrough

Learn the general steps for location testing in Xcode. Exact menus and available features may vary by Xcode and iOS version.

0:00 / 0:00

What you'll need

Six steps for developer location testing

1

Install Xcode on your Mac

Open Xcode in the Mac App Store and click Get. The download is around 10 GB, so allow some time. Once it finishes, open Xcode, accept the license agreement and wait for it to install its components.

2

Connect your iPhone and trust the computer

Plug your iPhone into your Mac using a USB or Lightning cable. Your iPhone will show a "Trust This Computer?" prompt — tap Trust and enter your passcode.

3

Enable Developer Mode on your iPhone

On your iPhone, open Settings → Privacy & Security → Developer Mode. Toggle it on and restart when prompted. After restarting, tap Turn On in the confirmation alert.

Settings → Privacy & Security → Developer Mode
4

Start a debug session in Xcode

In Xcode, open any project — or create a blank one: File → New → Project → App (use any name). In the device selector at the top, choose your iPhone. Press Run ▶. Xcode installs a small debug app on your device and starts a session.

If your iPhone shows an "Untrusted Developer" message, go to Settings → General → VPN & Device Management, tap the developer certificate and choose Trust.
5

Copy coordinates from Fake GPS

Open Fake GPS & Location Changer on your iPhone. Find the location you want on the map. Tap the pin or the info panel to see the exact latitude and longitude — note them down or copy them.

Your GPS has not changed yet. At this step the app works as a map to find coordinates. The actual location change happens in the next step inside Xcode.
6

Set a test location in Xcode

In Xcode, use the Debug → Simulate Location controls if available for your active development session. Enter test coordinates according to your Xcode version. This simulation is provided by Apple’s developer tools, not by the Fake GPS app, and is not a guarantee of changing locations for all installed apps.

Debug → Simulate Location (if supported)

Understand the simulation

Xcode location simulation is intended for testing apps in a development session. Its behavior depends on the connected device, Xcode version and active debug session. It should not be described as a way to change location reliably in all installed third-party apps.

💡

Keep Xcode connected

A simulated location is associated with your developer debug session. Stopping or disconnecting the session can end the simulation; confirm the current behavior in your version of Xcode.

Explore coordinates on the map

Use Fake GPS | Location Changer to find, copy and save map coordinates. Location simulation, if needed for testing, is controlled separately in Xcode.

Get on the App Store