Troubleshooting
For AI agents: this page is Markdown at https://squiggle.sh/docs/troubleshooting.md. Every docs page is listed at https://squiggle.sh/llms.txt, and all of them are one file at https://squiggle.sh/llms-full.txt.
Fixes for the problems people run into most, listed by what you see. Start with squiggle doctor: it checks the simulator, your app, screen tracking, source lines and your licence, and names the fix for each problem it finds.
squiggle doctordoctor waits up to 30 seconds for your app on a simulator to connect, and longer while the simulator shows Metro’s loading banner, such as Bundling 42%…. If the app doesn’t connect, the app connected line says why, for example that the bundle your app runs has no Squiggle SDK in it, and the other checks still run.
Install and set up
squiggle: command not found
If you installed Studio, install the command from it: open Settings (⌘ ,) and press Install next to Command line. Studio links squiggle into ~/.local/bin, and app updates update it too. If your shell still can’t find it, add ~/.local/bin to your PATH.
Metro can’t find a package in a monorepo
If your app is in a workspace and its dependencies are installed at the repository root, Metro only looks in the app’s own folder. Let it look at the root too, and keep withSquiggle around the config you export:
// metro.config.jsconst { getDefaultConfig } = require('expo/metro-config');const { withSquiggle } = require('@squiggle.sh/react-native/metro');const path = require('path');const projectRoot = __dirname;const workspaceRoot = path.resolve(projectRoot, '../..');const config = getDefaultConfig(projectRoot);config.watchFolders = [workspaceRoot];config.resolver.nodeModulesPaths = [ path.resolve(projectRoot, 'node_modules'), path.resolve(workspaceRoot, 'node_modules'),];module.exports = withSquiggle(config);A command at the repository root finds no flows or config
At the root of a monorepo, Squiggle uses the one app in apps/ or packages/ that has its own .squiggle folder with a config.jsonc, flows or interfaces. With two such apps it can’t choose, and uses the repository root. Run the command in the app’s folder, or set SQUIGGLE_PROJECT_ROOT to it, for example in the env of the squiggle entry in .mcp.json. In Studio, open the app’s folder. An app kept anywhere else is found only from its own folder or below it.
The SDK version differs from the CLI
squiggle init installs the SDK at the CLI’s own version. If your package manager holds back new releases with a minimum release age (minimumReleaseAge in Bun’s bunfig.toml or pnpm’s pnpm-workspace.yaml, npmMinimalAgeGate in Yarn’s .yarnrc.yml, minimum-release-age or min-release-age in npm’s .npmrc), a release from the last few days can’t install, and init stops with E_INSTALL_FAILED, naming the setting and what to change. Usually that’s adding the SDK to the setting’s exclude list; then run squiggle init again. In bunfig.toml:
[install]minimumReleaseAge = 604800minimumReleaseAgeExcludes = ["@squiggle.sh/react-native"]An app that already lists an older SDK keeps it: squiggle init prints a to-do with the install command. squiggle doctor warns about the difference once the app is running, and squiggle doctor --quick compares the installed SDK with the CLI before the app runs. doctor --quick reads the SDK from your app’s own folder, so it finds it in a monorepo too. When a release-age setting held the SDK back, both name the setting and the exclude to add. Install the SDK at the CLI’s version and rebuild the app.
pod install says the SDK needs react-native-nitro-modules
@squiggle.sh/react-native needs react-native-nitro-modules 0.35 or newer in the app means the package isn’t in your app’s own package.json. React Native links native code only from the packages your app lists, so a copy your package manager installed for the SDK isn’t enough. squiggle init adds it. If you set the SDK up by hand, add it yourself, then run pod install again:
bun add react-native-nitro-modulesIf the message says the app has 0.34.1 (or another version below 0.35), your app lists an older Nitro. Update it to 0.35 or newer. Any version from 0.35 works, so you can keep the one your other Nitro libraries need.
Xcode can’t build the NitroModules module
could not build module 'NitroModules', after import of module 'glog.glog.log_severity' appears within namespace 'google', means your app has react-native-nitro-modules 0.37 on React Native 0.83 or older. That Nitro release doesn’t build there, with or without Squiggle. Use Nitro 0.36, then run pod install again:
bun add react-native-nitro-modules@~0.36.5Running flows
No booted simulator, or the device is busy
no booted simulator found means no simulator is running. Boot one with Squiggle, or in Xcode or Studio. squiggle device simulator list names every simulator and its UDID, and squiggle device simulator create makes one:
squiggle device simulator boot <udid>With two or more simulators booted, a command that drives a device uses the one your agent’s Squiggle server or Studio is driving for this project, else the one running your app. When neither points at exactly one, it stops with exit code 2 and lists them, with the Squiggle session on each:
squiggle flow checkout2 simulators are booted and none was named: iPhone 16 Pro 31DB4E1A-… (driven by mcp session pid 4211 of /Users/ana/shop); iPhone 17 B52E0795-…Pass --udid with the one you mean, or set SQUIGGLE_UDID, or "udid" in .squiggle/config.local.jsonc to stop being asked. Your agent’s tools do the same when no app is connected yet, except when your app stopped or crashed: they stay on the simulator it ran on. Otherwise the agent picks a simulator with the target tool, or launches your app on one with launch_app { udid }.
Only one run can use a simulator at a time. A second run stops with exit code 5:
squiggle flow checkoutanother squiggle run holds this device (pid 1234, `squiggle flow login`, started 40 s ago)Wait for the first run to finish, or run the second on another simulator.
Port 7777 is taken by another program, or Studio’s relay seems wedged
:7777 is held by another Squiggle producer, not Studio names the process that holds the port. Run squiggle release: it lists every process holding the app and asks each one to let go. Relaunching the app doesn’t free the port.
squiggle releaseIf your agent’s Squiggle server holds it, the message says why, for example intent run 'r2' (check out) has been waiting on an agent answer for 40 s. squiggle release ends a run that is only waiting like this. A process that still won’t let go is ended by squiggle release --force. Studio is never ended.
You rarely need to free it yourself. When another squiggle command or agent server holds the port and is busy, a run or tool call waits for it to finish, for as long as it would wait for your app, instead of failing straight away. A holder you suspended (Ctrl+Z) is resumed so it can let go, and squiggle up hands the port to an agent’s tool call as soon as it asks. If a holder doesn’t answer at all, the message gives its process id and the command that frees the port, for example kill 4120.
:7777 is held by this same process means the process reporting the error still has an earlier connection open on the port. It isn’t Studio or another program. Run squiggle release, or restart that process, which frees the port too.
When Studio holds the port, the message says what Studio’s relay did. Studio's JS thread is busy means Studio is in the middle of a long task: re-run once it responds again. its relay on :7778 is not running means Studio is still starting: re-run once it shows your app connected. the relay on :7778 did not accept a connection means Studio didn’t answer within 2.5 seconds, which usually happens while it starts up or the Mac is busy: re-run in a moment. If Studio stays unresponsive for a few minutes, quit and reopen it.
Your agent’s Squiggle server lets go of the port when Studio, a squiggle command or squiggle release asks for it while nothing is driving. Until it gets the port back, its status tool lists a notice such as :7777 was handed to flow (pid 4120 — squiggle flow checkout) at 2026-11-06T09:14:02.000Z; this server is waiting to get it back, and a tool that can’t connect to your app ends its error with the same line. While that notice shows, an app that connects on port 7777 reaches the process named, not your agent. The server takes the port back the next time it connects to your app after that process exits.
If you can’t free the port, use another one. Set "port": 7790 in .squiggle/config.jsonc, or SQUIGGLE_PORT=7790 for one command, and point your app at the same port in its .env (in a Niteshift task, where 7780 and 7790 are taken, pick another):
EXPO_PUBLIC_SQUIGGLE_WS_URL=ws://localhost:7790Restart Metro with --clear so the app picks it up.
The app is dialling a different port
When your app stays silent for a few seconds, Squiggle listens for it on other ports. Your app keeps the port it started with: the one its .env sets, or the one Squiggle gave it when it last launched it. If Squiggle finds your app on the simulator it targets, it asks the app to connect to its own port as well, and the command prints redirected the app from :7787 to :7777. The run goes on without a relaunch. The redirect lasts until the app is relaunched, so the next session may print the same line.
When the app can’t be redirected (it runs on a physical device, or it doesn’t answer in time), the command warns instead, for example the app is dialling :7787, but this listens on :7777, and the error at the end of the wait leads with the same line.
When the port your app’s .env sets is held by another process, Squiggle can’t listen there, so it names that process instead: the app is not dialling :7790: /Users/dana/shop/apps/mobile/.env bakes EXPO_PUBLIC_SQUIGGLE_WS_URL=…:7777 into its bundle, and :7777 is held by pid 4120 — squiggle mcp, so the app is likely connected there. Stop that process, or change the port so both sides agree.
Your app may be connected to another Squiggle session on its own port, for example the MCP server that launched it, while you run squiggle flow with SQUIGGLE_PORT set to another port. Squiggle finds the app by its open connections and asks it to connect to the run’s port as well, so both sessions keep it. When the app doesn’t connect within a few seconds, the run stops and names who holds it, for example the app is connected to :7790, held by a Squiggle MCP server (pid 4120 — squiggle mcp), project /Users/dana/shop. Run the flow through that session’s run_flow, stop that process, or relaunch the app from the run with squiggle flow <name> --fresh.
That sharing happens only with Studio or a session of the same project. When the session holding your app belongs to another project, or to another checkout of this repository (a git worktree declares the same app), Squiggle never asks the app to connect to your run as well, because your run would then drive the other session’s screen. The run or tool stops and says whose app it is, for example the app is connected to :7791, driven by a Squiggle MCP server (pid 5151 — squiggle mcp), project /Users/dana/shop-checkout, a session of another project. Create a simulator of your own (squiggle device simulator create, or your agent’s device tool with simulator) and name it (--udid, SQUIGGLE_UDID, or target from your agent), or stop that session first. A command or agent that wasn’t told a simulator skips such an app on its own and picks another simulator; with none left it stops with E_DEVICE_HELD. Naming the simulator picks the device, not the other session’s app on it: squiggle flow <name> --fresh, squiggle up, the relaunch a run makes to replace an out-of-date agent, and your agent’s launch_app stop with E_DEVICE_HELD there instead of relaunching that app. When the Mac is too busy to confirm who holds the app, the message says could not confirm who holds and Squiggle leaves the app alone as if it were held; run the command again once the Mac is less busy. When no other Squiggle CLI run or agent server is running, or the only ones are working on other simulators, there is nobody to ask: the app is yours at once, however busy the Mac is.
Being connected isn’t the same as being driven. Every app dials port 7777 unless its .env says otherwise, so when two projects use the default port, the first Squiggle session to start receives both projects’ apps. It keeps the app it isn’t for connected without driving it. Squiggle counts a session as holding your app only when that session drives it: it belongs to a project that declares the app (or declares no app at all), and it isn’t working on another simulator (a CLI run works on the one it was started on, Studio’s runs included). Your own project’s session then takes the app as usual. If the app doesn’t take the request to connect to your run as well, the message says a session of another project that does not drive it. Give each project its own port in .squiggle/config.jsonc, with the same port in the app’s EXPO_PUBLIC_SQUIGGLE_WS_URL, so each project has its apps to itself.
squiggle doctor shows whose session holds your project’s port. When it is another project’s, the app plane row warns and names that project, for example :7777 (this project’s port) is held by another project’s MCP server, pid 72786 — squiggle mcp, project /Users/dana/shop: your app connects to that session when it starts. Your own squiggle flow or agent asks that session for the port and gets it once the session is idle.
Squiggle names a port only when your app is running. When it isn’t, the message says so, for example com.acme.shop is not running on 31DBF2F7-…. Start it with launch_app from your agent, or run a flow with squiggle flow <name>: both launch it with Squiggle’s agent. When your app is running but isn’t connected to any of those ports, it’s dialling the port it was launched with, and the message says the app is running, but it is not connected to :7777 …. Relaunch it from Squiggle so it dials the port Squiggle listens on. When Squiggle launched the app itself, the port isn’t the problem: the message names the Metro your app loads its JavaScript from and whether it answers, for example it expects Metro at http://localhost:8081, and :8081 has nothing listening. Start your app’s Metro, then run again. When Metro answers and the app still doesn’t connect, see The app is running, but its JavaScript never connects.
To stop the mismatch for good, if the message names a .env file, set "port" in .squiggle/config.jsonc to the port it names, so every Squiggle command and your agent’s server use it. Otherwise relaunch the app from Squiggle (squiggle flow <name> --fresh, or launch_app with relaunch: 'always' from your agent) so it dials the port Squiggle listens on. The port only changes between sessions when SQUIGGLE_PORT is set in one and not the other, or the config’s port changes.
The app is running, but its JavaScript never connects
When your app is up but its JavaScript never connects to Squiggle, the message says what it found. It comes when the wait for your app ends, not while your app may still be starting:
the app is still loading its JS: the simulator shows Metro’s loading banner, such asBundling 42%…. Squiggle keeps waiting while the banner shows, up to five minutes. A first build, or one after--clear, can take a minute or more.has no Squiggle SDK in it: the app loaded its JavaScript, but the bundle doesn’t include Squiggle, so nothing connects. If your app includes Squiggle only when an environment variable is set, such asEXPO_PUBLIC_SQUIGGLE=1, restart Metro with it set and its cache cleared (npx expo start --clear). Otherwise add the SDK withsquiggle init.includes the Squiggle SDK, but the app never ran it: your app imports Squiggle behind a condition that was false when Metro built the bundle. Restart Metro with the variable set and--clear.crashed while loading its JS: your app crashed before its JavaScript connected. The message names where it crashed and the crash report. Open the report, fix the crash, and run again.Metro is up but slow to answer: Metro answers, but not in time, because it’s building a bundle or the machine is busy. The simulator may showThere was a problem loading the project. Run again once Metro answers, and read its log if it keeps failing.
A step fails with srp: client disposed
The app’s connection to Squiggle closed during the run, and Squiggle didn’t connect to it again. The step says srp: client disposed or the app's connection closed and it did not come back. The app relaunched or reloaded its JavaScript, or it keeps dialling a port Squiggle no longer listens on, so every step after it fails the same way. A run reconnects to an app that relaunched or reloaded, and asks an app dialling another port to connect to its own (see The app is dialling a different port). If a step still fails this way, relaunch the app from Squiggle (squiggle flow <name> --fresh, or launch_app with relaunch: 'always' from your agent) and run it again.
When the app crashed, the step says so first, with where it crashed and the crash report, for example the app's connection closed during the step (srp: client disposed): the app crashed: EXC_BAD_ACCESS (SIGSEGV) in Gestures, called from -[UIApplication _cancelGestureRecognizersForView:], report ~/Library/Logs/DiagnosticReports/example-2026-11-10-101010.ips. Other Squiggles attached to the app are then listed as also attached: they didn’t cause it. Open the report to see the crashed thread. A crash inside iOS’s touch or gesture handling while Squiggle drives the app is a Squiggle bug: report it with that file. Then run the flow again with squiggle flow <name> --fresh.
When another Squiggle is attached to the same app, the step says which one, for example the app's connection closed during the step (srp: client disposed): another Squiggle is attached to this app: an MCP server (<version>, pid 4242). It can be your editor’s MCP server, Studio, or another run. A Squiggle of another version puts its own agent back into the app, so the run loses it. Update the other one to the same version, or stop it while the run drives the app.
A tap fails with input-busy
Squiggle sends one touch at a time to your app. When two Squiggles drive the same simulator at once (a run and your agent’s MCP server, or Studio, say), a tap or swipe waits for the other one’s touch to finish, including a touch on an alert, a sheet or a system button. If that takes longer than 2.5 seconds, the step fails with input-busy instead of pressing anyway. Stop the other Squiggle, or let it finish, then run the step again.
The app doesn’t come back after a relaunch
When a relaunched app never connects, Squiggle asks the app what it is stuck on and adds the answer to the warning, and to the note of your agent’s launch_app, which starts the app did not dial back in after the relaunch:
its process is not answering: the app crashed or closed at launch, or was started without Squiggle’s agent. Relaunch it from Squiggle.its main thread is not answering: the app is stuck before its JavaScript loads, and the screen stays black. Relaunch it.it has not loaded its JS from any Metro: start your app’s Metro.its JS came from … but it never connected here: the bundle connects to another port. See The app is dialling a different port.
A command drives Studio or another app instead of your simulator
With no --udid, squiggle save, squiggle load and your agent’s tools drive the app of this project that Squiggle launched most recently, else the app it launched most recently, though never a development build of another project’s app (see A run says “not saving”). Your agent makes that choice once, when it first attaches, and then stays on that simulator. If it picked Studio or an app on another simulator, pass --udid with the simulator you mean, or have your agent switch with target or launch_app naming your app. A flow, and anything it runs beside itself such as --tune or --bisect-state, always drives the booted simulator for its platform, or the one --udid names.
The app stays on the Expo dev client launcher, or opens the wrong Metro
A development build that hasn’t opened a server yet, or that was stopped (xcrun simctl terminate, a crash, swiped away), shows the launcher instead of your app. Whenever Squiggle launches your app (a flow, your agent’s launch_app, squiggle up), it starts it on the Metro server that serves your app, so your app opens straight away. The development build shows its launcher while it asks that server for your app, so for 15 seconds after the launch Squiggle leaves the launcher alone and says the dev client is loading … with the server’s address: opening the server again would load your JavaScript a second time. When you started the app yourself and it sits on the launcher, a flow, your agent’s tools and squiggle up get past it themselves: they open the Metro server that serves your app, press Open on an “Open in …?” alert, and close the developer menu if it opens over the app, and go on only once your app’s JavaScript has connected. You don’t need to run squiggle up first.
Squiggle opens only a Metro server that serves your app, on any port: it looks on ports 8081 to 8090 first, then on every other port a node or bun process listens on. A server serves your app when its app config has your app’s bundle identifier, or, when it names none or a different one, your app’s Expo slug. So a bundle identifier you set only in Xcode, or one your app.config picks per build variant, still finds your server. A server whose app has your bundle identifier wins over one that only shares the slug, and a server that only shares the slug counts only when it runs from inside your project, or from the same folder in another checkout of its repository (a git worktree), since two projects can have the same slug. Squiggle never opens another project’s server, even one on 8081: that bundle would crash your app on a native module it lacks. If none of them serves your app, the command stops with E_CONNECT and lists each server it found and what it serves, for example no Metro on :8081–:8090 or any port node or bun listens on serves it: saw :8081 serves com.acme.admin (/Users/you/admin). Start your app’s Metro (npx expo start), or, if Squiggle still doesn’t find it, name it with "metroUrl": "http://localhost:8095" in .squiggle/config.jsonc (or SQUIGGLE_METRO_URL for one shell), and run the command again.
Squiggle waits up to 30 seconds for a server that is running but slow to answer. When your app’s runtimeVersion uses Expo’s fingerprint policy, Metro works out the fingerprint again for every request, which can take up to 20 seconds while it builds a bundle. After 5 seconds, Squiggle says which server it is waiting on. A server that still hasn’t answered after 30 seconds is listed with its manifest did not answer within 30s, though its /status did. To skip the wait, name your server with metroUrl in .squiggle/config.jsonc: the CLI, the MCP server and Studio all read it, and use that server without asking it which app it serves.
When Squiggle relaunches your app, it comes back on the Metro server it was on, if that server still serves it, or else on the first server Squiggle finds that serves it. If your development build opens its most recent server by itself and that server belongs to another project, Squiggle relaunches it on your app’s server, and the status line says the app came up on …, not … — relaunching it on …. If no server serves your app, the command stops and names the other project’s server. When you name a server with metroUrl or SQUIGGLE_METRO_URL, your app goes to that server, even when it can’t say which server it loaded from, as a freshly installed build often can’t.
Expo’s three-finger long press doesn’t open the developer menu
Squiggle turns that gesture off whenever it launches an Expo development build, because on iOS 26 a tap in the developer menu could crash your app while it was on. Your development build saves the setting, so the gesture stays off when you open the app yourself too. Shake the device instead (squiggle device shake), or press ⌘ D or ⌃ D in the simulator. To turn the gesture back on, tap Go home in the developer menu, open the Settings tab and turn on Three-finger long-press under Menu Gestures. The next launch through Squiggle turns it off again. See Pickers, sheets and system alerts.
A run says “not saving” and leaves no artifact
Squiggle saves an app’s data only into the project that owns the app. The app that connected isn’t named in this project’s .squiggle/config.jsonc, and wasn’t built from inside it, so the run drove it and saved nothing. This happens when two projects’ apps both connect on port 7777. If the app is this project’s, declare it with the line the warning prints:
"apps": { "ios": "com.acme.shop" }If it is another project’s, run the command from that project, or pass --udid with the simulator your own app is on. Squiggle never drives a development build of another project’s app, even when your project declares no app: an app built outside your project, under a bundle identifier your project doesn’t declare, is refused when it connects. The command then waits for your own app and, if it doesn’t come, names the one it refused and the folder it was built in, for example com.acme.admin on this device did connect, and was not used: it is another project’s app, built in /Users/you/admin. Start your own app, or run the command from that project. In a monorepo, the config that counts is the app folder’s .squiggle/config.jsonc when it has one; see How Squiggle finds the folder. To find data saved into the wrong project, run squiggle store audit; --purge removes it.
If the warning says the project has no Squiggle store yet, the app is this project’s but the project was never set up. Run squiggle init in it to start saving. See When Squiggle adds the folder.
If it says the app did not say which app it is (no bundle id in its handshake), Squiggle drove the app but can’t tell which project it belongs to, so it saves nothing. In a release build you keep Squiggle in, the native library is linked only when "release": true was in the config at pod install: run pod install in ios/ and rebuild. See Keep Squiggle in release builds. If the message says the app’s SDK is older, update @squiggle.sh/react-native and rebuild.
A type step says the field never became ready for input
The field was on screen but didn’t keep what was typed, which happens while a screen is still loading after a cold launch. A type step waits about 4 seconds for the field, focusing it and typing again, before it fails with this message. Wait for what the screen shows once it has loaded before typing, for example waitFor: { visible: { testID: sign-in } } on a control that appears last.
Runs are slow or flaky, or typing fails
Your app is probably running without Squiggle’s agent: it was built with an SDK version that doesn’t start the agent itself, or the agent failed to load (the app’s log says [squiggle] agent dylib failed to load). Flows still run, but each run takes a few seconds longer. A step that waits for the app to settle can’t ask the app, so it moves on after a few unanswered checks, and the next step can act in the middle of an animation. Typing goes through the simulator’s keyboard instead, and a type step can fail with never took keyboard focus over HID or, on a busy Mac, keystrokes were dropped. doctor shows a warning on its app injected line.
Relaunch the app with Squiggle attached by running the flow with --fresh (your agent: launch_app with relaunch: 'always'):
squiggle flow login --freshTo stop it happening, rebuild your development build with the current SDK: a debug build on the simulator then starts the agent itself, and each launch loads the one that came with your squiggle. Studio always launches the app with Squiggle attached.
A step waits a long time for the app to settle
Something on screen is still animating. An animation that repeats forever, such as a spinner, doesn’t hold a wait, and neither does one paused partway, such as a blur held at part strength. Run the flow with --settle-debug to log every settle check. When a wait runs out, it names what kept it waiting: the component and its file:line, when Squiggle can find them, and the animated property.
squiggle flow checkout --settle-debugStatus reports a stale dylib, or every step takes seconds, after an update
The app is still running the copy of Squiggle it was launched with, from before you updated. doctor reports that the running copy doesn’t match this build, and your agent’s status lists a blocker such as injected dylib C5C52349-… ≠ host build 3BD19FEB-… — terminate and relaunch the app. A squiggle flow run relaunches the app with the current copy by itself. A benchmark, a run of several flows and your agent’s drive tools never relaunch a running app, so run one flow first (your agent can call launch_app { relaunch: "always" }):
squiggle flow loginIn a Niteshift task the agent comes with your app’s SDK build, so a relaunch loads the same one again and Squiggle doesn’t judge it.
A step passes, but nothing happened in the app
A tap passes when the app reacts in some way, not only when it does what you meant: a button that only shows its pressed state passes. Squiggle holds each tap until your app’s JavaScript is free to handle it, so a tap doesn’t land on a list that is about to be replaced. A tap with no reaction is sent once more only when nothing on screen changed, and is pressed inside the app if the control moved after the first tap. If a tap on one of your app’s controls gets no reaction the second time either (no render, no navigation, no focus, and the same view under the finger), the step fails with the tap did nothing, naming what was under the finger for each tap. Check that the control’s handler runs. A handler that changes only a worklet’s shared value or native state renders nothing and reads the same, so show something the tap changes, such as a confirmation, and assert on it. If the tap is meant to change nothing, such as tapping the tab you are already on or dismissing the keyboard, give the step optional: true. A control iOS draws (a native button or switch) keeps the warning no graph reaction … (retried) instead. A tap on UI outside your app, such as a system sheet or Expo’s developer menu, is never sent twice: it fails with the tap did nothing when, for 2 seconds after it, that UI shows exactly what it showed before and your app doesn’t react. When the screen did change, for example a native alert closed or a search field opened, the tap is not sent again and the warning says why: no graph reaction … (not sent again: …). Add an assert after the action to check the result. See How Squiggle works.
The second run fails at the first step
A flow starts from wherever the last run left the app. If the last run failed halfway, or ended on a different screen, the next one can’t find its first control, and the error often looks like a broken selector. Relaunch the app before the run:
squiggle flow login --freshTo avoid this for good, give the flow a starting state (see flows).
A tap fails because its target is off screen
Squiggle won’t tap a control that is outside the screen, because the tap would land on whatever is at the edge instead. The error names the control’s position and the screen size. Scroll to it first with a scrollUntilVisible step, or run with --auto-scroll to scroll automatically.
A flow won’t load: not valid YAML
The flow file isn’t valid YAML. The run stops with exit code 2 and E_FLOW_PARSE, and names the line and column:
squiggle flow orders✗ flow: not valid YAML — Flow map in block collection must be sufficiently indented and end with a } at line 6, column 1: E_FLOW_PARSE visible: { text: Order #20 }^The usual cause is a # in a value: YAML reads everything from # on as a comment. Inside { } that swallows the closing brace, which is the error above. On a line of its own it isn’t an error at all: text: Order #20 looks for Order. Quote any value with a # in it:
- assert: visible: { text: "Order #20" }A step passes normally but fails with --ax-only
The step fails with ax_unreachable: no element in the accessibility tree carries the selector, or several announce it the same way, so a VoiceOver user can’t reach the control. Give it an accessibilityLabel or a testID that names it uniquely. See Run settings.
A flow passes on its own but fails on the report card
The report card runs each flow offline, against stubs built from its last green run. A stub keeps each response’s shape but not its values: strings read like title 1 and numbers count up from 1. A flow that asserts text from your server, such as a product name, fails there. Run the card with --live to use your real backend, or assert on something the server doesn’t write, such as a testID.
The report card’s startup row stays pending
The row says which screens load at startup was not measured. Squiggle times the modules your app evaluates at startup only when your Metro config is wrapped in withSquiggle (see withSquiggle) and the bundle was built with it. Add it, restart Metro with --clear, and run the card again. Screens are read from Expo Router’s app/ route files, so an app without them always shows the row as pending.
The report card’s cliff row stays pending
The card reads the newest --cliff sweep and never runs one. The row stays pending until a sweep reaches the size the screen declares, and again whenever the screen’s route file, or the file of the component the sweep named, changes. Run the sweep the row’s fix names, with a range that goes past max. See Keep a screen off its cliff.
A report card row says the app was not running
The row reads no app on … connected … and this run does not relaunch it. The app crashed or exited during an earlier flow, and this flow waited 30 seconds for it before giving up. Any run that doesn’t relaunch the app itself, such as a later flow in squiggle flows or a benchmark, stops the same way. A crash leaves a report in ~/Library/Logs/DiagnosticReports. The card starts the app again for the next flow, as it does after any failed flow. When you run one flow by itself, run it with --fresh to relaunch the app first.
The app reloads in the middle of a run
Two Metro servers are serving the same app, usually because expo start is running twice. The app loads the bundle from one and then reloads from the other. Stop every Metro server except one.
React Native DevTools disconnects during a run
Squiggle keeps the app’s debugger connection for the run, to capture a JavaScript profile when the JS thread stalls, and Metro allows one debugger per app, so DevTools disconnects until the run ends. Reconnect afterwards, or turn the capture off. See Profiling.
perf heap or probe eval says the app’s JS stayed busy
squiggle perf heap, perf profile and probe eval connect to the app’s debugger only while its JS thread is idle, and wait up to 10 seconds for that. The Hermes debugger interrupts running JS, and an interrupt at the wrong moment crashes the app. If the JS never goes quiet, for example during a long startup, an endless animation loop in JS or a timer that does work every few hundred milliseconds, the command stops without connecting: probe eval exits 2 with E_JS_BUSY, and perf heap and perf profile exit 2 with E_PERF and the same message. Run it again once the app is idle. If it says it could not find the app’s process (E_JS_UNOBSERVABLE from probe eval, E_PERF from the others), name the simulator it runs on: pass --udid <UDID> to perf heap, perf profile or probe eval, or set SQUIGGLE_UDID.
perf heap or probe eval says several devices run the app
Two simulators running your app from one Metro server both show up in Metro’s debugger list under the same app id. Without a device named, perf heap, perf profile, probe eval and probe reload refuse and list the devices rather than attach to whichever app reloaded last. Pass --udid <UDID> or set SQUIGGLE_UDID.
Your agent says Metro isn’t reachable, so profiles and heap snapshots are unavailable
Profiles, heap snapshots and symbolicated stacks go through the Metro server that serves your app. When status can’t reach it, it marks perf.profile, perf.heap and perf.symbolicate unavailable, reports metroReachable: false and says Metro is not reachable at http://localhost:8081, naming the server it tried; metroUrl in the reply is the same server. Squiggle looks for the server your app’s bundle came from, then for one on any port that serves your app. Start your app’s Metro, or if it runs somewhere Squiggle doesn’t look, name it in .squiggle/config.jsonc:
{ "metroUrl": "http://localhost:8095" }SQUIGGLE_METRO_URL does the same for one shell, and wins over metroUrl.
motion or assert smooth says the agent can’t follow a view that long
Squiggle follows one view for at most 10 seconds. A longer ms on the motion tool or on assert: { smooth }, or a longer --ms on squiggle motion, is refused rather than cut short: ask for 10000 ms or less. If the reply says the agent followed the view for only part of the time you asked, the app was built with an older SDK whose agent stops sooner. Rebuild the app with the SDK that matches your CLI, or ask for no more than the time the reply names.
A React web app won’t open, or Studio doesn’t show it
The run, tool or Studio action that opens the app names what’s wrong, such as no dev server on that port, no address under apps.web or no Chrome installed; the fix for each message is in React web apps. Studio lists your project’s web app as Not open until a window shows it; choose it to open it. If the app is running but the device panel stays empty, close Squiggle’s window and choose the app again.
In a Niteshift task, a tool returns E_HANDOFF or the app never connects
E_HANDOFF is a step outside the app for the task’s agent, such as pushing Squiggle’s launch file or relaunching the app. Take the step; its then says whether to call the tool again or to look again with describe. If the step says the app connected with another run’s launch file, push the file again and relaunch the app; this happens after the MCP server restarts. For everything else, see Niteshift tasks.
Saves and state
squiggle load refuses a save
A save is checked against your app before anything is restored. If a store or screen it holds has changed or gone, squiggle load refuses the whole save, names what changed, and leaves your app as it was. A save taken before your stores had names, which lists stores such as store:zustand-2, is refused the same way once they do. Save it again. See Save and restore your app’s state.
squiggle load fails on another simulator
MMKV data is copied on the simulator that took the save, so it loads only there. On another simulator, or after you reset the app’s data, the screen and stores are restored but every MMKV instance is left as it was, and the load reports failure naming the instance. Take the save again on this simulator.
Stores show as store:zustand-3 after an upgrade
Metro is serving a bundle built before the Babel plugin could name your stores. If your Metro config is wrapped in withSquiggle, restarting Metro is enough. Otherwise restart it with --clear:
npx expo start --clearA store created inside a component keeps a numbered name. See Store names.
squiggle product state is empty
The app sends no state samples. That also leaves --where and friction --state with nothing to split by. Build the app with EXPO_PUBLIC_SQUIGGLE_STATE_ANALYTICS=1, debug builds included, and check that your app doesn’t pass false to setStateAnalyticsConsent. See Turn on state samples.
Studio and the Inspector
Screens show as “(no screen)”
Squiggle can’t see which screen is showing, so waiting for a screen, checking it and the Screen map don’t work. doctor warns on its route tracking line. Wrap your root in <Squiggle navigationRef={…}>, as in Set up your app.
The Inspector can’t show a component’s file and line
The Babel plugin isn’t in your build. doctor warns on its source locations line. Add @squiggle.sh/react-native/babel to babel.config.js (squiggle init does it), then rebuild the app. A reload isn’t enough.
The on-device overlay doesn’t appear
The overlay only draws in a development build, and only when the app isn’t connected to Studio or the CLI. When Studio or a flow launches the app, the overlay stays hidden, because Studio has its own Inspector. To use the overlay on its own, add EXPO_PUBLIC_SQUIGGLE_WS_URL=off to your app’s .env and launch the app yourself.
Still stuck
Run squiggle doctor --bundle. It writes a support file on your Mac with versions, settings and paths relative to your project, and none of your code. You can read it before you send it. Email it to support@squiggle.sh with what you did and what happened.