Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Fake GPS Location on iPhone or Android

· 7 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Faking your GPS location on a phone means making apps and services believe you are somewhere you are not. On iPhone, this is done through the developer tools in Xcode on a Mac; on Android, you can use a mock location app that you enable in the system settings. You do not need to jailbreak or root your phone for either method, but you do need a computer for iPhone and a third-party app from the Google Play Store for Android.

What You'll Need

  • For iPhone: A Mac computer with Xcode installed (free from the Mac App Store), a Lightning or USB-C cable, and the iPhone you want to spoof.
  • For Android: An Android phone with Developer Options enabled (see step 1), and a mock location app from the Google Play Store (e.g., “Fake GPS Location” by Lexa or “Mock Locations” by Dva).
  • Both methods require that you trust the app or developer tools on your device.

Step-by-Step

For iPhone (using Xcode on a Mac)

  1. Install Xcode on your Mac. Open the Mac App Store, search for Xcode, and install it. This is a large download (several gigabytes), so make sure you have enough free space.
  2. Connect your iPhone to your Mac. Use the cable that came with your iPhone. If prompted on the iPhone, tap “Trust This Computer” and enter your passcode.
  3. Open Xcode on your Mac. If this is your first time, it may ask you to install additional components – allow it.
  4. Create a new project. In Xcode, go to File > New > Project. Choose “iOS” > “App” and click Next. Give it any name (e.g., “GPSSpoofer”), select your team (or “None” if you don’t have an Apple Developer account – it still works), and click Next. Choose a location to save it.
  5. Select your iPhone as the run destination. At the top of the Xcode window, you’ll see a dropdown that says “My Mac” or a simulator name. Click it and select your iPhone from the list under “Device”.
  6. Run the app on your iPhone. Press the Play button (▶) in the top-left corner. Xcode will install a blank app on your iPhone and launch it. The app will just be a white screen – that’s fine.
  7. Open the location simulation tools. In Xcode, look at the bottom of the window. You’ll see a row of buttons; one looks like a small arrow or a location pin. Click it. A dropdown appears with options like “Custom Location…”.
  8. Enter your fake coordinates. Choose “Custom Location…” and type the latitude and longitude you want. For example, to fake being in Paris, use latitude 48.8566 and longitude 2.3522. Click “Simulate Location”.
  9. Your iPhone’s GPS is now spoofed. All apps that use location services will see the fake coordinates. To stop, go back to Xcode, click the same location button, and choose “None” or “Default”.
  10. Disconnect when done. You can unplug the iPhone after you’ve set the location, but the spoof will only last until you restart the phone or change it again. To set a new location, reconnect and repeat steps 6–8.

For Android (using a mock location app)

  1. Enable Developer Options. Go to Settings > About phone and tap “Build number” seven times. You’ll see a message saying “You are now a developer”.
  2. Open Developer Options. Go back to the main Settings menu, then tap “System” > “Developer options” (on some phones it’s under “Additional settings” or just “Developer options”).
  3. Find “Select mock location app”. Scroll down in Developer options until you see “Select mock location app” or “Mock location app”. Tap it.
  4. Install a mock location app from the Play Store. Search for “fake GPS location” and install a reputable one. Many have free versions. Read the reviews to pick one that works on your phone model.
  5. Select the app in Developer Options. After installing, go back to Developer options, tap “Select mock location app”, and choose the app you just installed.
  6. Open the mock location app. It will show a map. Search for the location you want or tap on the map to drop a pin. Some apps have a “start” button – press it.
  7. Grant the app permission to overlay and access location. The first time you start, the app will ask for permission to draw over other apps (for the floating control) and to access location. Allow both.
  8. Verify the spoof. Open a map app like Google Maps and see if your blue dot appears at the fake location. If it doesn’t, check that Developer Options is still on and the mock location app is selected (some phones reset this after a reboot).
  9. Stop the spoof. In the mock location app, there is usually a “stop” button. Press it, and your real location will return. If you want to disable mock location entirely, go back to Developer options and set “Select mock location app” to “None”.

Common Mistakes

  • Forgetting to select the mock location app in Developer Options. The app won’t work unless you explicitly choose it there.
  • Using a mock location app from an unknown source. Stick to the Google Play Store; sideloaded APKs can contain malware.
  • On iPhone, not running the blank app. The location simulation only works while the Xcode project is running on your phone. If you close the app or disconnect without setting the location, it stops.
  • Setting the location but not pressing “Simulate”. In Xcode, you must click the location button and choose a preset or custom location – just typing coordinates isn’t enough.
  • Not granting overlay permission on Android. Some apps need to draw over other apps to show a floating button; without it, they may crash or not work.
  • Using an app that is not compatible with your Android version. Check the app’s requirements before installing.

Tips

  • For Android, some apps let you “walk” or “drive” a route, which is useful for games like Pokémon GO. Look for that feature if you need it.
  • On iPhone, you can save multiple custom locations in Xcode’s location simulation dropdown (e.g., add Paris, London, New York) for quick switching.
  • If you only need to spoof for a short time, consider using a free Android mock app rather than the Xcode method, as it’s quicker.
  • Remember that some apps (like banking or dating apps) actively check for mock location and may block you or show errors. Use this only for apps that allow it.
  • After you’re done, always disable mock location on Android (set to “None”) to avoid any app detecting it.

Troubleshooting

  • Android: The fake location doesn’t stick. Make sure Developer Options is still enabled (it can turn off after a restart). Re-select the mock location app. Also, some apps require you to press a “start” button inside the app – not just set the pin.
  • Android: Google Maps shows “Location unavailable” or a blue dot that jumps around. This often means the mock app is not selected correctly. Go to Developer options > Select mock location app and choose the app again. Also, close and reopen the map app.
  • iPhone: Xcode says “No devices connected”. Unplug and replug the cable. Make sure you tapped “Trust” on the iPhone. Try a different USB port or cable.
  • iPhone: The location simulation button is grayed out. You must have the app running on the phone (press Play first). Also, make sure your iPhone is selected as the destination, not a simulator.
  • Android: The mock app crashes. Clear the app’s cache (Settings > Apps > [app] > Storage > Clear Cache) and restart. If it still crashes, try a different mock location app from the Play Store.
  • After spoofing, your real location is still shown. On Android, some apps use Wi-Fi or network location instead of GPS. Turn off Wi-Fi and use only GPS, or check the app’s location settings. On iPhone, some apps use a combination; try restarting the app.

Frequently Asked Questions

Is faking GPS illegal?

It’s not illegal in most places, but it violates the terms of service of many apps (like social media or games). You could get banned from those apps if detected.

Will faking GPS drain my battery?

On Android, a mock location app running continuously can use extra battery because it’s constantly updating the location. On iPhone, the Xcode method only runs while the app is active, so it’s less draining.

Can I fake GPS on iPhone without a Mac?

No. The official method requires Xcode on a Mac. There are no reliable iPhone apps that fake GPS without jailbreaking, and jailbreaking is not recommended for security reasons.

Does faking GPS work on all apps?

No. Some apps have detection mechanisms that check for mock location (Android) or that compare your IP address or Wi-Fi network to your GPS. Those apps may show errors or block you.

How long does the fake location last?

On Android, it lasts until you stop the mock app or reboot the phone. On iPhone, it lasts until you change it in Xcode or restart the phone.

Will my real location be exposed if I turn off the fake?

Yes. Once you stop the mock app (Android) or set the location to “None” in Xcode (iPhone), your phone will use its real GPS again. There’s no residual effect.