Install on macOS
Result: simlock doctor reports nothing missing, and the Mac has an OS installed that agents can lease.
Before you start
Section titled “Before you start”| 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.
1. Install Simlock
Section titled “1. Install Simlock”npm i -g simlocksimlock --helpCheck: simlock --help prints the command list.
2. Set up iOS simulators
Section titled “2. Set up iOS simulators”-
Install Xcode from the App Store.
-
Select it, accept its licence and run its first-launch setup:
Terminal window sudo xcode-select -s /Applications/Xcode.appsudo xcodebuild -license acceptsudo xcodebuild -runFirstLaunch
3. Set up Android emulators
Section titled “3. Set up Android emulators”-
Install Android Studio. It installs the SDK in
~/Library/Android/sdkand includes a JDK. -
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.
-
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" -
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.
4. Check the machine
Section titled “4. Check the machine”simlock doctorCheck: 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.
5. Install an OS to lease
Section titled “5. Install an OS to lease”Simlock creates devices only on an OS that is installed. Install the versions your agents use:
simlock component install ios 26.0simlock component install android 36Give an iOS version or an Android API level. An install downloads several gigabytes; progress prints on stderr.
Check: the OS appears in the catalog:
simlock catalog --platform iosPlatform: ios Runtimes: 26.0 (default: 26.0)Troubleshooting
Section titled “Troubleshooting”A tool you installed is not found
Section titled “A tool you installed is not found”The daemon was already running when you installed it. Stop it; the next command starts it again with the new tool:
simlock daemon stopsimlock doctorDoctor findings
Section titled “Doctor findings”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). |
Install fails
Section titled “Install fails”| Error | Fix |
|---|---|
LICENSE_NOT_ACCEPTED |
sdkmanager --licenses, then install again. |
INSUFFICIENT_DISK_SPACE |
Free disk. Nothing was downloaded. |
DOWNLOAD_TIMEOUT |
Run the install again. |