Latest 0.2.4
License MIT
Platforms ios 7.0, requires ARC
Dependencies JRSwizzle
Frameworks UIKit, CoreLocation


MockinPlace is a location simulator for iOS. It plays back GeoJSON tracks and coordinates because Xcode does not do this properly.

  • Supports both the simulator and real devices.
  • Generates speed and heading values from your coordinates.


  • Include some .geojson files in your target.
  • You can use or to convert your GPX files to GeoJSON
  • @import MockingPlace; or #import <MockingPlace/MockingPlace.h> if your are not using modules.
  • Add [MockingPlace enable]; somewhere after app launch. You should wrap this in #ifdef DEBUG to avoid shipping you app with MockingPlace enabled (It calls one private method to simulate heading updates).
  • Run your app and long press with two fingers for two seconds anywhere to bring up the track selection menu. In the simulator hold down ALT and hold down the mouse button to simulate a long two finger press.

To run the example project, clone the repo, and run pod install from the Example directory first. The example project contains two example GeoJSON files.


  • Xcode 7.x or later (for Lightweight Generics)
  • iOS 8.x or later


MockingPlace is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MockingPlace"


Maciej Swic, [email protected]


MockingPlace is available under the MIT license. See the LICENSE file for more info.

Latest podspec

    "name": "MockingPlace",
    "version": "0.2.4",
    "summary": "A complete CLLocationManager simulator.",
    "description": "Simulates locations and tracks using geojson. Apple keeps changing how the location simulation in Xcode works and it kept breaking my projects. Enter MockingPlace. Also works on real devices.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Maciej Swic": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.2.4"
    "social_media_url": "",
    "platforms": {
        "ios": "7.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MockingPlace": [
    "frameworks": [
    "dependencies": {
        "JRSwizzle": [
            "~> 1.0"

Pin It on Pinterest

Share This