Skip to content

Install on macOS

Result: simlock doctor reports nothing missing, and the Mac has an OS installed that agents can lease.

You need For
Node.js 22.13 or later The simlock CLI
Xcode iOS simulators
Android Studio, or the Android SDK command-line tools, and a JDK Android emulators
About 8 GiB free disk per iOS runtime, 2 GiB per Android system image Installing an OS
macOS 14 or later Watching a simulator’s screen in the console only

Set up one platform or both. Skip the section for the platform you don’t need.

Install the platform tools before you run any simlock command except --help. The daemon looks for the tools only when it starts. If you add a tool later, see A tool you installed is not found.

Terminal window
npm i -g simlock
simlock --help

Check: simlock --help prints the command list.

  1. Install Xcode from the App Store.

  2. Select it, accept its licence and run its first-launch setup:

    Terminal window
    sudo xcode-select -s /Applications/Xcode.app
    sudo xcodebuild -license accept
    sudo xcodebuild -runFirstLaunch
  1. Install Android Studio. It installs the SDK in ~/Library/Android/sdk and includes a JDK.

  2. In Android Studio, open Settings → Languages & Frameworks → Android SDK → SDK Tools. Select Android SDK Command-line Tools (latest), Android Emulator and Android SDK Platform-Tools. Click Apply.

  3. Add these lines to ~/.zshrc, then open a new terminal:

    Terminal window
    export ANDROID_HOME="$HOME/Library/Android/sdk"
    export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
    export PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$ANDROID_HOME/platform-tools:$PATH"
  4. Accept the Android SDK licences. Simlock cannot install a system image until you do:

    Terminal window
    sdkmanager --licenses

Without Android Studio: unpack the command-line tools to $ANDROID_HOME/cmdline-tools/latest, install any JDK, point JAVA_HOME at it, then run sdkmanager --install emulator platform-tools.

Terminal window
simlock doctor

Check: stderr is empty and stdout is:

{"findings":[],"sources":[]}

Each problem prints one line on stderr with the platform and the fix:

Missing [ios] xcode-license: The Xcode license is not accepted. Run `sudo xcodebuild -license accept`.

Run the fix, then see A tool you installed is not found. A line for a platform you skipped is expected; ignore it.

Simlock creates devices only on an OS that is installed. Install the versions your agents use:

Terminal window
simlock component install ios 26.0
simlock component install android 36

Give an iOS version or an Android API level. An install downloads several gigabytes; progress prints on stderr.

Check: the OS appears in the catalog:

Terminal window
simlock catalog --platform ios
Platform: ios
Runtimes: 26.0 (default: 26.0)

The daemon was already running when you installed it. Stop it; the next command starts it again with the new tool:

Terminal window
simlock daemon stop
simlock doctor

Every line ends with its fix. These need more than the line says:

Line starts with Fix
Missing [android] android-sdk: No Android SDK found Set ANDROID_HOME to the SDK folder (step 3).
Missing [android] android-jdk: sdkmanager cannot run Set JAVA_HOME to a JDK (step 3).
Missing [android] android-cmdline-tools: Install Android SDK Command-line Tools (step 3).
Error Fix
LICENSE_NOT_ACCEPTED sdkmanager --licenses, then install again.
INSUFFICIENT_DISK_SPACE Free disk. Nothing was downloaded.
DOWNLOAD_TIMEOUT Run the install again.