Latest 0.2.4
Homepage https://github.com/maciekish/MockingPlace
License MIT
Platforms ios 7.0, requires ARC
Dependencies JRSwizzle
Frameworks UIKit, CoreLocation
Authors

Version
License
Platform

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.

Usage

  • Include some .geojson files in your target.
  • You can use http://mapbox.github.io/togeojson/ or http://converter.mygeodata.eu 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.

Requirements

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

Installation

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

pod "MockingPlace"

Author

Maciej Swic, [email protected]

License

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": "https://github.com/maciekish/MockingPlace",
    "license": "MIT",
    "authors": {
        "Maciej Swic": "[email protected]"
    },
    "source": {
        "git": "https://github.com/maciekish/MockingPlace.git",
        "tag": "0.2.4"
    },
    "social_media_url": "https://twitter.com/maciekish",
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "MockingPlace": [
            "Pod/Assets/*.png"
        ]
    },
    "frameworks": [
        "UIKit",
        "CoreLocation"
    ],
    "dependencies": {
        "JRSwizzle": [
            "~> 1.0"
        ]
    }
}

Pin It on Pinterest

Share This