set-simulator-location

1.5.0

CLI for setting location in the iOS simulator
MobileNativeFoundation/set-simulator-location

What's New

Add product to Package.swift

2020-06-23T17:54:27Z

#26

afdc04ed0b74d0c0429f29400aec239cf7a82a88ab4b04ff45397c1c364b8531  set-simulator-location
c774ced00de9fc94e5ffe0e02820d225eb37db342a399358ea713c132f91f378  set-simulator-location.tar.gz

set-simulator-location

This is a simple CLI for easily setting the location of the currently running iOS Simulator.

Usage

Set a specific latitude and longitude:

$ set-simulator-location -c 37.7765 -122.3918

Or using place search:

$ set-simulator-location -q Lyft HQ San Francisco

By default the location is set on all booted simulators. If you'd like to change it for only one of the booted simulators you can pass -s followed by the simulator's display name:

$ set-simulator-location -q Lyft HQ San Francisco -s iPhone X

NOTE: If you have multiple booted simulators with the same name, the location will be set on all of them.

Installation

With homebrew:

$ brew install lyft/formulae/set-simulator-location

With Mint:

$ mint install lyft/set-simulator-location

With a precompiled release:

  1. Download the latest release from here
  2. Install it some place in your $PATH

Manually:

$ make install

I have submitted a Radar to have this behavior added to simctl.

Development

To work on set-simulator-location you can make your changes and run make to build from the command line. If you'd prefer to work in Xcode you can run make xcode to generate a project using SwiftPM.

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Nov 30 2022 09:09:15 GMT-0500 (GMT-05:00)