A collection of command-line utils for Apple simulators.
Clone or download
Latest commit e848b18 Dec 9, 2018

README.md

AppleSimulatorUtils

A collection of utils for Apple simulators.

Installing

Install brew, then:

brew tap wix/brew
brew install wix/brew/applesimutils

Note: In case your installation fails, make sure to update your command line tools in the system update of your Mac.

Usage

Usage:
    applesimutils --byId <simulator identifier> --bundle <bundle identifier> --setPermissions "<permission1>, <permission2>, ..."
    applesimutils --byName <simulator name> --byOS <simulator OS version> --bundle <bundle identifier> --setPermissions "<permission1>, <permission2>, ..."
    applesimutils --simulator <simulator name/identifier> --restartSB
    applesimutils --list [--byName <simulator name>] [--byOS <simulator OS version>] [--byType <simulator OS version>] [--maxResults <int>]
    applesimutils --byId <simulator identifier> --biometricEnrollment <YES/NO>
    applesimutils --byId <simulator identifier> --matchFace

Options:
    --byId                  Filters simulators by identifier
    --byName                Filters simulators by name
    --byType                Filters simulators by device type
    --byOS                  Filters simulators by operating system
    --list                  Lists available simulators
    --setPermissions        Sets the specified permissions and restarts SpringBoard for the changes to take effect
    --clearKeychain         Clears the simulator's keychain
    --restartSB             Restarts SpringBoard
    --biometricEnrollment   Enables or disables biometric (Face ID/Touch ID) enrollment.
    --matchFace             Approves Face ID authentication request with a matching face
    --unmatchFace           Fails Face ID authentication request with a non-matching face
    --matchFinger           Approves Touch ID authentication request with a matching finger
    --unmatchFinger         Fails Touch ID authentication request with a non-matching finger
    --bundle                The app bundle identifier
    --maxResults            Limits the number of results returned from --list
    --version, -v           Prints version
    --help, -h              Prints usage

Available Permissions:
    calendar=YES|NO|unset
    camera=YES|NO|unset
    contacts=YES|NO|unset
    health=YES|NO|unset
    homekit=YES|NO|unset
    location=always|inuse|never|unset
    medialibrary=YES|NO|unset
    microphone=YES|NO|unset
    motion=YES|NO|unset
    notifications=YES|NO|unset
    photos=YES|NO|unset
    reminders=YES|NO|unset
    siri=YES|NO|unset
    speech=YES|NO|unset