Reference
Troubleshooting & FAQ
| Symptom | Fix |
|---|---|
iOS: SimulatorKit not found … / … has no Indigo HID builders | On Xcode 27.1, update looktap (0.7.1 finds SimulatorKit where 27.1 moved it). Otherwise run looktap doctor and point xcode-select at a full Xcode: sudo xcode-select -s /Applications/Xcode.app |
iOS, Xcode 27.1: boot --window shows no simulator | Xcode 27.1 shows simulators in Device Hub, not the Simulator app, one at a time: pick the simulator in Device Hub's sidebar |
iPhone Duo: screenshots are black, or ls misses half the screen | Update looktap to 0.7.2 or later: earlier versions only knew the outer screen, which is off while the Duo is open |
<app> is not installed on this simulator for Maps, Photos… | That runtime ships without it (the iPhone Duo's iOS 27.1 has Safari and Settings). looktap apps --all lists what's there |
this simulator doesn't fold | fold needs a foldable simulator: the iPhone Duo, which comes with Xcode 27.1's iOS 27.1 runtime |
iOS: input unavailable (dtuhid): dtuhidd did not answer | The simulator is still booting, or its input service is restarting. Retry in a few seconds |
iOS: an element you can see is missing from ls | Some containers hide their children from accessibility. looktap probes for them, but tapxy is the fallback |
only the status bar is readable — a system prompt … may be covering the app | A passcode, permission or alert prompt drawn by iOS. looktap shot to see it |
both iOS and Android devices are up — pass -p ios|android | Add -p, or export LOOKTAP_PLATFORM=… |
not found: <label> | Run looktap ls and copy the label. If the screen is slow to load, raise --wait |
"<label>" is ambiguous — matches N labels | Use more of the label, a @ref, or --exact |
"<label>" is ambiguous — "<label>" is in N places | The same label twice on screen (a heading and a tab, say). looktap ls, then tap the one you mean by @ref. A form's label over its own field isn't ambiguous: the field wins |
that's React Native's LogBox toast … dismiss it with looktap tapxy … | A dev build's warning toast blocks taps across the bottom of the screen. Run the tapxy it prints, then tap again. For long sessions, LogBox.ignoreAllLogs() in test builds |
the keyboard leaves no room to scroll | looktap hidekb, then scrollto again |
fill: typed "…", but the field holds "…" | The field limits or reshapes input (a maximum length, a mask), or keeps clearing itself. Check it with looktap ls; type into it with type after a tap |
fill: typed N characters, but the field holds M characters | A password field lost keys even typed one at a time, and the clipboard couldn't be used to paste it. Check the keyboard layout is US, and that no password manager or AutoFill sheet is over the field (looktap ls) |
the simulator's pasteboard won't take the text | Neither simctl pbcopy nor the Mac's clipboard reached it: Xcode's pasteboard sync can get stuck on an old item. type the text instead (fill and code already fall back to typing) |
code: entered …, but the boxes hold … | The boxes reject typed and pasted digits alike, or aren't one row. looktap ls, then tap the first box and type the digits, checking with ls |
no row of code boxes on this screen | code looks for four or more small fields side by side. A code in one field: fill <field> <code> |
<app> exited right after it started | The app crashed at launch. looktap crashes <app> shows the report |
<app> isn't responding / <app> crashed (keeps stopping) | The system's dialog is over the app. looktap crashes <app>, then tap "Wait" or "Close app" and launch it again |
keyboard is still up (iOS) | Search keyboards have no Done key. Tap the screen's Cancel/close control |
Android ls fails right after boot | Wait until adb shell getprop sys.boot_completed prints 1 |
device <serial> is not connected / <serial> isn't connected any more | looktap devices lists what is. A phone unplugged from USB may still be there over Wi-Fi, under its Wi-Fi id (adb-…._adb-tls-connect._tcp); a phone on both is one row, USB + Wi-Fi |
couldn't reach <serial> at <ip> over Wi-Fi / <serial> isn't on Wi-Fi | Put the phone and this computer on the same network. Guest and office networks often keep devices from reaching each other: try a phone hotspot |
found no phone showing a pairing code on this network | Keep Developer options → Wireless debugging → Pair device with pairing code open on the phone, or pass the host:port shown under the code: looktap pair 482913 192.168.1.15:37199 |
pairing with <address> failed | The code changes each time that screen opens: use the one on screen now |
Wireless debugging needs Android 11 or later (from wifi --always) | Older phones can't keep Wi-Fi across a restart: run looktap wifi with the cable in again after each one |
the device is out of storage, so the runner can't be installed | Free some space on the iPhone (Settings → General → iPhone Storage), then run the command again |
perf --frames on a real iPhone reads its screen over the USB cable | Plug the iPhone in with a cable and unlock it: the screen feed it reads doesn't exist over Wi-Fi |
the iPhone's screen feed didn't start | Unlock the phone, and close QuickTime (or anything else showing the phone's screen): one app at a time can read it |
Instruments is busy on the device | An earlier Instruments recording on the phone didn't end (looktap's, Xcode's or another tool's). It clears in a few minutes, or reconnect the cable; restarting the phone always clears it |
Android ls fails after Appium was used | Appium still holds UiAutomation: adb shell am force-stop io.appium.uiautomator2.server |
Appium / uiautomator fail after looktap was used | looktap's helper holds UiAutomation: looktap -p android teardown |
Android helper did not start — falling back to uiautomator dump | Something else holds UiAutomation (see above). looktap keeps working, just slower |
| Android keyboard never appears | Set hw.keyboard = no in the AVD's config.ini, then cold-boot the emulator |
| Android screenshot is black | That screen is FLAG_SECURE: use shot without --plain on an emulator. System PIN and biometric sheets stay black in every mode |
the device is locked: unlock it, then run the command again | Unlock the phone (and on an iPhone keep it unlocked while the runner starts). Commands that need the screen stop rather than act on the lock screen; stop, key wakeup and Android screenshots still work |
| App sits on the splash screen (Android, React Native) | Metro isn't reachable: looktap setup (adds adb reverse tcp:8081), make sure Metro runs, then looktap launch |
launch says no launchable activity | The app isn't installed or the id is wrong: adb shell pm list packages, or xcrun simctl listapps booted |
FAQ
Is this a test framework?
Not a framework, but it runs tests. expect checks the screen, and looktap test runs flow files (plain looktap
commands, one per line) and reports them, with a JUnit report and the evidence of each failure. That covers smoke
tests on every build, bug repros, and flows an agent wrote while building a feature: see
Test flows in CI.
Flow files have no variables, loops or shared setup, and looktap doesn't mock the network or shard across devices. For a large suite that needs those, use XCTest, Espresso, Detox or Maestro.
Does it work on a real iPhone?
Yes. looktap installs a small XCUITest runner on it, signed with your own Apple ID (a free one works). See Using a real iPhone for the one-time setup and what works there.
On Android it works with emulators and with USB-debugging devices. (On a device, screenshots go through the
device, so FLAG_SECURE screens are black.)
Does it install anything on my device or in my app?
Nothing on the iOS simulator. On Android it copies an 8 KB helper to /data/local/tmp and runs it with
app_process, the way scrcpy does. No APK is installed, no app is modified, and there's no SDK to add to your app.
looktap teardown stops the helper.
Does it work with React Native, Flutter, SwiftUI, Compose, web views?
It reads the platform accessibility tree, so anything that exposes accessibility labels works. That includes React
Native (it was built while driving RN apps), SwiftUI, UIKit, Compose and Views. It also reads web content in
Safari, in-app browsers and web views. Flutter isn't tested yet: it exposes elements through its semantics tree,
so it should work wherever that is enabled. Elements without a label show as (no label) and can be tapped by @ref.
Linux or Windows?
iOS needs a Mac. The Android side is plain Node + adb and should work anywhere they do. It's developed and tested
on macOS.
Will an Xcode update break it?
It can. The iOS helper uses private simulator frameworks, like idb does. looktap doctor tells you if something
it needs has moved. Reading the screen and screenshots have held steady. Input changed in Xcode 27, and Xcode 27.1
moved a framework and replaced the Simulator app with Device Hub: looktap 0.7.1 handles both, tested on Xcode 27.1.
Does it handle foldables?
The iPhone Duo simulator (Xcode 27.1), yes: looktap fold closed|half|open folds it the way Device Hub's buttons
do, and ls, taps, screenshots, recordings and rotate follow whichever screen it shows, the outer one closed and
the inner one open. Android foldable emulators aren't supported yet (see the Roadmap).
Can my agent sign in to my app with it?
It can type, but it shouldn't type real credentials. Have a person sign in (and enter OTPs), then let the agent continue. The skill tells agents exactly that. See Safety rules.
With a test-only account it can: fill checks each field holds what it typed (a password by its length), and
code enters a test account's fixed or staging one-time code into its boxes and checks each one. That's also how
to test the sign-in form itself.
Generated from README.md. Edit it there.