For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

iOS Simulator Setup for Kane CLI

Set up Apple's iOS Simulator once, and Kane CLI can run mobile tests against it. This guide targets macOS on Apple Silicon (arm64), the only supported host for this release. See Mobile Testing for the full picture.

note

The exact iOS runtime versions and simulator device models in the supported matrix are pinned by the product team. The versions shown below are current, working examples. Confirm the officially supported set before you rely on a specific one.

1. Install Xcode 16 or Newer

Install the full Xcode app from the Mac App Store. The standalone Command Line Tools are not enough. Kane CLI requires Xcode 16 or newer, which bundles the iOS Simulator, the simctl tool, and at least one iOS runtime. The download is large, several GB, so allow time on the first install.

Launch Xcode once after installing so it can finish installing its additional components.

2. Point the Command Line Tools at Xcode

Kane CLI talks to the simulator through Apple's simctl, which ships inside Xcode. Make sure the developer directory resolves to the full Xcode install, not the standalone Command Line Tools:

sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license accept # accept the license non-interactively

Confirm Xcode and simctl are reachable:

xcodebuild -version                # should report 16.x or newer
xcrun simctl list devices available

You should see one or more iOS devices grouped under an iOS runtime. Xcode ships with default simulators. If none are listed, add one from Xcode → Settings → Platforms, or Xcode → Window → Devices and Simulators.

3. Install the Kane CLI Test Tooling

Sign in and let Kane CLI install the tooling it manages for the simulator:

kane-cli login
kane-cli doctor --install

You do not need to boot a simulator yourself. Kane CLI discovers the simulator, boots it, installs your app, and runs the test.

Ready Check

Confirm Kane CLI sees a ready iOS toolchain and, optionally, the simulators on your machine:

kane-cli doctor              # required checks, each with a fix if it fails
kane-cli doctor --targets # also list the simulators Kane CLI can run against

When the iOS checks pass, your simulator setup is complete.

Run a Test

kane-cli run "Sign in and open the account tab" --target simulator --app ./builds/MyApp.zip

The simulator target accepts a .zip build or an uploaded app id, APP followed by six or more digits.

Common Failures

SymptomCauseFix
doctor reports Xcode is too oldXcode older than 16Update Xcode to 16 or newer from the App Store
xcrun: error: unable to find utility "simctl"Developer directory points at the standalone Command Line Tools, not XcodeRun sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
doctor reports no developer directoryFull Xcode not installed, or never launchedInstall Xcode from the App Store, launch it once, then run xcode-select --install
"No iOS simulator found" when picking a deviceNo simulator device exists yetAdd one in Xcode → Window → Devices and Simulators, then reopen the list

Next Steps

Test across 3000+ combinations of browsers, real devices & OS.

×
Schedule Your Personal Demo
Book Demo

Help and Support

Related Articles