Quick Answer: An iOS location simulator feeds fabricated coordinates to an iPhone. Reloc, an open-source project, does this by posing as an external GPS accessory and streaming standard NMEA sentences over a local loopback connection. It's aimed at protocol research and app debugging, and it raises serious platform and legal questions. For most app testing, Xcode's built-in location simulation is the safer, simpler choice.

Most location tools on iOS work at the software layer, where a developer can flag the result as fake. Reloc, a project documented in a Chinese-language GitHub README, takes a different route. It tries to look like a hardware GPS source. That distinction matters for anyone who builds location-aware apps, runs fraud checks, or just wants to understand why some fake locations are harder to spot than others.

What Reloc is trying to imitate

At a high level, Reloc is an app that runs on the iPhone itself. It connects through a local proxy to a system accessory channel of the sort used by in-car head units and external navigation hardware. After a session handshake, it sends location data in NMEA 0183 format, the same plain-text sentence standard ($GPGGA, $GPRMC) that GPS receivers have used for decades.

The architecture is the interesting part. Software-only simulators inject a location at the Core Location layer, and the system knows where the fix came from. An accessory source is a different category. From the app's point of view, the data arrives through a channel that looks like a legitimate peripheral. Reloc's README also describes an MFi-v3 authentication step, which is Apple's hardware-accessory certification program, and that's a big part of why the design is notable.

Why "simulated" and "accessory" are different flags

Here's where most developers get it wrong. Apple's CLLocation exposes source information, and the two properties that matter are isSimulatedBySoftware and isProducedByAccessory, documented in the Core Location framework reference. A lot of anti-spoofing logic checks only the first one.

That's the lazy version of the check. A software-injected fix will usually set isSimulatedBySoftware to true, which catches Xcode's simulated locations and most desktop tools. An accessory-sourced fix doesn't set that flag, so the check passes. The counter-intuitive takeaway is that a simulated-software check tells you almost nothing about whether a location is genuine. Your app needs to consider the source, the consistency of the fix over time, and the physical plausibility of movement together.

Here's the trade-off you should understand. Accessory-level injection is harder to flag with one property, but it's also more fragile. It depends on device state, system caching, and the accessory channel staying alive. That fragility is where most real-world failures come from.

Where the real difficulty sits

Injecting coordinates is the easy part. The hard part is undoing them. When a fix has been fed into the system, iOS keeps a cache of recent locations, and that cache doesn't clear the moment the source disappears. The README itself describes this: it recommends toggling the system Location Services setting when the device keeps returning an old position. Apple's own behavior here isn't documented as a stable contract, so anyone relying on it should expect variation across iOS versions.

This is the failure mode a practitioner would hit first. A user stops a simulated route, and the device keeps reporting the last spoofed point for several minutes, especially indoors where GNSS is weak. Your app then sees a fix that has no movement history to back it up. If your app assumes the location service always reflects the physical device, that stale-cache state can produce confusing bugs.

Legitimate use versus misuse

The honest answer is that tools like this have a narrow legitimate audience and a much larger potential for misuse. Protocol researchers, automotive and accessory developers, and QA teams sometimes need to see how a location-dependent app behaves under controlled conditions. Those are real uses.

Misuse looks different. Spoofing a location to fake delivery routes, bypass geofenced promotions, mislead a dating or ride-hailing service, or evade a workplace or legal location check is fraud or policy violation, and in many jurisdictions it can be illegal. Reloc's own disclaimer says users bear full responsibility for how they use it and must follow local law and each service's terms. That's the correct position, but a disclaimer doesn't change what the tool does.

MethodWhat it simulatesNeeds a computerDetection by isSimulatedBySoftwareBest use
Xcode Simulate LocationSoftware-injected coordinatesYes (Mac)FlaggedDaily app development
GPX route playback in XcodeTimed movement along a pathYes (Mac)FlaggedTesting navigation and route logic
Unit tests with mocked CLLocationManagerSynthetic delegate callbacksNo (in CI)Not applicableAutomated regression testing
Accessory-level tools such as RelocAccessory-sourced NMEA streamPartly (pairing)Not flaggedProtocol research, accessory development

For most app teams, the first three rows cover everything they need, and they're much easier to reason about.

Platform and reliability limits

Reloc's compatibility table shows the constraints clearly. The README says iOS 27 and later supports on-device pairing, while earlier versions need a computer for the first pairing step. It also says iPadOS isn't supported because iPads don't offer the CarKit-style accessory channel. Those limits are a reminder that the approach relies on private, version-specific behavior, which can break with any OS update.

There's also the platform-policy question. Apple's developer terms and App Store rules generally restrict tools that mislead users or interfere with system services, so an approach like this is typically sideloaded and unsupported. Anyone building on it should assume the behavior could change or be blocked without notice.

Safer alternatives for developers

If your goal is to test location handling, you don't need an accessory-level tool.

  1. Start with Xcode's simulated locations. Pick a preset or a custom coordinate in the debug bar. This covers most checks for map rendering and permission flows.
  2. Use GPX files for movement. Build a route file with realistic timestamps and speeds. Include jitter and gaps, because a perfectly smooth track looks fake to your own code.
  3. Mock at the boundary. Wrap CLLocationManager behind a protocol and feed synthetic fixes in unit tests. You get repeatable results in CI without any device-level tricks.
  4. Check the source, not just the flag. If your app makes decisions based on location, read sourceInformation and check whether the fix is software-simulated, accessory-produced, or consistent with the device's motion data.

Here's where it gets interesting for security work: the same signals that let you detect spoofing in your own app are the ones a fraud team would use. Designing your checks around source, timing, and plausibility will hold up better than any single flag.

Frequently Asked Questions

What is an iOS location simulator?

An iOS location simulator sends fake coordinates to an iPhone so apps behave as if the device is somewhere else. Xcode's built-in simulation does this for development. Accessory-level tools like Reloc go further by imitating an external GPS source, which makes the fake fix harder for simple software checks to identify.

It depends on what you do with it. Using a simulator to test your own app is generally fine. Using fake coordinates to deceive a service, evade a check, or commit fraud can violate terms of service and, in many places, the law. Always check local regulations and each platform's terms before you act.

Why does my iPhone keep showing the old location after I stop a simulation?

iOS caches recent location fixes, and that cache doesn't always clear immediately when the source stops, especially indoors where satellite signal is weak. Toggling Location Services or waiting for a fresh GNSS fix usually resolves it. Apple doesn't guarantee this timing, so treat it as variable behavior.

How can I test location-based features without a computer?

Use unit tests with a mocked location manager, which doesn't require a physical device at all. For on-device testing without Xcode, you'd need a third-party tool, and that carries the platform and legal risks described above. For most teams, mocking at the code boundary is the more reliable choice.

Try building a short GPX route in Xcode this week, add some realistic jitter, and see how your app handles a stale or gappy fix. Pass this to a teammate who's wrestling with location bugs in production, and ask them to check sourceInformation before trusting any fix.