Set the location of the ios simulator via node or the command line
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources/simulator-set-location
.gitignore
.prettierrc
Package.swift
Readme.md
cli.js
index.js
license
package.json

Readme.md

ios-simulator-set-location

Set the location of the ios simulator via node or the command line

Install

$ npm install ios-simulator-set-location

or if you want to use the cli

$ npm install ios-simulator-set-location -g

Usage

const setLocation = require('ios-simulator-set-location');

(async () => {
    const lat = 52.5243700; 
    const lat = 13.4105300;

    // set optional device Name, defaults to all running devices
    const deviceName = 'iphone X'; 
    await setLocation(lat, lat, deviceName);

})();

CLI

Usage
  $ ios-set-location lat lng -n deviceName

Options
  --name, -n  specify the simulator name (optional, defaults to active running devices)

Examples
  $ ios-set-location 52.5243700 13.4105300

License

MIT © Steffen Müller