Giter Site home page Giter Site logo

wormhole's Introduction

Wormhole

A simple application that allows you to simulate any location across all applications on your iOS device. Useful for testing a location-aware iOS application in a realistic environment.

Setup

  1. Add any destinations you want to simulate.
  2. Build and run the included Xcode project on an iOS device.
  3. In Xcode, use the Debug ‣ Simulate Location menu or the Simulate Location icon in the debugger toolbar to select a simulated location.
  4. On your device, grant Wormhole the Location Services permissions it asks for, so that you can easily see the locations that are being simulated.
  5. Switch to any other location-aware application.

Important: Once you are done, terminate the debugging session within Xcode before unplugging your device. Otherwise, the wormhole will close, trapping you and your phone at the last simulated location, even after restarting. Hope you like the weather there!

Destinations

A few stationary simulated locations have been provided in the Destinations group, but you can also provide your own GPX tracks:

  1. Go to File ‣ New ‣ File and choose the “GPX File” template.
  2. Add the file to the Wormhole target.
  3. Stop the debugger (if it is running) and rebuild and run the application under the debugger.

Note that Xcode only recognizes <wpt> elements, not <trkpt> elements. By default, the simulation steps through each waypoint in a .gpx file in order at a rate of one waypoint per second. Recent versions of Xcode can interpolate between the waypoints based on the specified timestamps, as long as the waypoints are sorted in chronological order. Core Location’s heading, course, and speed readings are not simulated, even if the relevant data is included in the GPX track.

You can find freely available GPX tracks at OpenStreetMap, but note that these tracks must be converted to an Xcode-compatible format as detailed above.

See also

  • PokemonGoMove takes this concept a step further to facilitate Pokémon GO gameplay.
  • GuideDog is a library for simulating location updates from within an application. It offers more control over the location updates but only works in applications that you can build from source code.

wormhole's People

Contributors

1ec5 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.