The drawer is macOS-only; from Windows, Linux or a Mac without Xcode, use the DAEX Cloud iPhone or the simulator on another of your Macs.
xcrun, xcodebuild, and Simulator.app must be available on the runtime host. idb and idb_companion are optional but unlock direct tap, drag, text, and accessibility-backed inspection.What the drawer does
Build & launch
Discover Xcode projects, DerivedData app bundles, and installed simulator apps, then build, install, and launch the one you pick.
Mirror the live view
Stream the real Simulator.app window into the drawer, parked behind DAEX so it stays out of your way.
Inspect & select
Tap an element to capture it as chat context, with its component id, source file, and line when the app is annotated.
Control
Tap, drag, swipe, and type into the running app when
idb and idb_companion are installed.Source-anchored inspection
The heart of the drawer is DAEX Inspector, a debug-only Swift kit that lives inside the iOS app under inspection. When you annotate a view with.adeInspectable("settingsButton"), the kit publishes a per-frame JSON snapshot of every annotated view’s frame, component id, and source location into the app’s data container.
When you tap in inspect mode, DAEX correlates that snapshot with a fresh screenshot and attaches the matched element to your chat as a context chip carrying the component id, the source file and line, and a screenshot of the hit. The agent reasons about that view at that line, not the surrounding container.
1
Annotate the views you care about
Wrap buttons, list rows, and headline labels with
.adeInspectable("componentId") and mount .adeInspectorHost() once near the root. The kit is #if DEBUG-only; release builds compile it to a no-op.2
Launch the app in the drawer
DAEX builds and launches your selected target, then mirrors the Simulator window into Work.
3
Tap in inspect mode
A tap resolves the SwiftUI view under your finger and produces a context item.
4
Send it to the agent
The element lands in the chat composer as a chip with the source file and line baked in.
When the app isn’t annotated
DAEX Inspector is opt-in, and inspection degrades gracefully:- Accessibility fallback: with
idbinstalled, a tap falls through to the OS accessibility tree, so the agent still gets labels and roles (just no source file or line). - Coordinate fallback: without
idb, DAEX still attaches the screenshot and the hit coordinates, so the agent can reason about the region.
Preview Lab
Beyond a running app, the drawer can render SwiftUI previews. It discovers nearby#Preview and PreviewProvider definitions, ranks the best match for your selected source file or last-tapped element, opens Xcode when needed, and renders the preview into DAEX’s Preview drawer: a one-shot bridge from “the view I just selected” to “show me what it looks like.”
One owner per session
Each launched simulator session has one owning chat or lane. If a second chat tries to launch against an active session, it’s told the simulator is owned by another session until the current owner releases it or you force a shutdown.A simulator on another Mac
A chat can use the simulator on another of your Macs without moving there.daex apple launch --machine "Mac Studio" with no lane builds the chat’s work copy on that Mac (see remote machines) and runs it on a simulator that Mac already has and no lane holds. DAEX creates a new simulator only when none is free, and never deletes one it borrowed. The drawer then offers Simulator · Mac Studio beside This lane, so you can switch between them.
No Mac?
The drawer needs a Mac with Xcode. From Windows, Linux or a Mac without Xcode, a chat can use the simulator on another of your Macs. Or use the DAEX Cloud iPhone, which needs no Mac at all.The DAEX Cloud iPhone
The DAEX Cloud iPhone is an iPhone simulator that runs on DAEX Cloud, so a chat on any machine (Windows, Linux, the web, a Mac without Xcode) can build and drive an iOS app. Pick DAEX Cloud in the drawer’s Runs on row, or have the agent rundaex devices use ios@cloud; every daex apple command then goes to it.
- One phone per account: every chat that uses
ios@clouddrives the same one. - It stops after 5 minutes with no command or input, and after 2 hours at most. The drawer shows the credits left and the idle stop while it runs, with Keep on in the last 90 seconds.
- The chat whose agent started it gets a line when it starts and when it stops.
- It uses your DAEX Cloud credits: 5 a minute, charged by the second, and less with ads on. The free plan’s monthly credits cover it too. See Plans and pricing.
- A machine with a DAEX older than 1.2.131 can’t reach it; the drawer and
daex devicessay to update DAEX there.
Drive it from the CLI
Everything the drawer does is also available from thedaex apple command group (daex ios-sim is an older name for it), so an agent can build, launch, inspect, and control the simulator headlessly. Use --socket so the CLI and the desktop drawer share the same live session, selection, and proof state.
daex apple commands
daex apple commands
no-context result from a preview command means DAEX has no selected source-backed element yet; select one first rather than guessing the screen.Troubleshooting
The live view is blank
The live view is blank
Verify Simulator.app is running and not minimized. The drawer reports the specific macOS window issue when capture is blocked.
Taps or text don't work, but the view does
Taps or text don't work, but the view does
Install
idb and idb_companion; they back direct input and accessibility inspection. Without them you still get the mirrored live view.A launch is blocked by another owner
A launch is blocked by another owner
Run
daex --socket apple shutdown --force --text, or use the drawer’s takeover action.Browser
The same inspect-and-hand-off flow, for web pages.
Agent chat
Act on the element you tapped, in context.

