Authorization notice. DSH iOS is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Credentials. The phone may be signed into personal accounts, so taps and typing on it act on real accounts, which the plugin gates with identify-before-tap rules.
Who it is forA developer testing on physical hardware who needs a screen view and taps on a phone without setting up the tunnels by hand.
The problemSetting up WebDriverAgent and its ports on a real device takes many manual steps before any testing can start.
The outcomeThe agent starts WebDriverAgent on the phone and returns a screenshot and UI tree from the device.
What you need first
- A Mac, since the README says the tools fail with an explanatory error on non-macOS hosts
- DeepSeek Harness (DSH) installed, tested by the README with DSH 0.1.5-rc.1
- The npm package @zseven-w/dsh-ios, current plugin release 0.1.0-rc.10
- Xcode tooling for xcodebuild and simctl, which the build and simulator tools use
- For a real iPhone: a USB connection, the device unlocked, and Apple Development signing for device builds
Steps
- Call ios_sim_devices and copy the udid of your iPhone from realDevices.
- Unlock the iPhone and confirm developer mode is on, as shown in the realDevices state.
- Call ios_real_start_wda with that udid and wait, since a cold build takes minutes.
- Call ios_sim_screenshot and ios_sim_ui_tree with the same udid to read the phone screen.
Prompt for your agent
Using the dsh-ios plugin in the ZSeven-W/dsh-ios repo, call ios_real_start_wda with the physical-device udid <udid>, then ios_sim_screenshot for that udid. Report the control and MJPEG ports and the screenshot path. Verify that WebDriverAgent reports ready before you take any tap action on the phone.
Caveat. The README says the device must be unlocked and device builds need Apple Development signing, so setup can stall without both.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for ZSeven-W/dsh-ios and "Drive a real iPhone over USB from the conversation"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer