Using XCUITest to let Claude Code control a physical iPhone
11/13/2026 — 11/13, 21:20·1 sources (all)·1 reports (all)
Key takeaways
- The author connects a physical iPhone via cable and uses Xcode's built-in XCUITest to let Claude Code read screenshots and button labels, cl…
Background & analysis
On 2026-11-13, an author published a walkthrough on DEV Community describing a complete setup for letting Claude Code operate a physical iPhone. The effort began after Apple rejected the author's app and requested a recording captured on a real iPhone, so the author built the automation to meet that requirement rather than as a one-off trick for a demo video.
At the core of the approach is XCUITest, the UI testing framework bundled with Xcode. A physical iPhone is connected by cable, and Claude Code reads the on-screen screenshots along with the full list of button labels, then performs taps by name instead of guessing at pixel positions. No jailbreaking and no hacking are involved at any point. The author used the setup for three tasks: producing the review demo video Apple required, generating App Store screenshots, and changing settings on the iPhone. The post makes the test code, the surrounding script, and every failed run together with the exact error messages and the fixes applied publicly available.
The author stresses that the pipeline is not fast. Its real value, in the author's view, is that the one-hundredth run produces exactly the same result as the first. The material released so far covers this practice and the accompanying code, and no further developments have been reported.
AI-generated from 1 reports · updated 24 minutes ago
Related AI tools
- Heat index
- 98
- All sources
- 1
- All reports
- 1
- First seen
- 48 minutes ago
Reports on this story headlines open the original
Using Xcode's own XCUITest over a cable to a real iPhone, the author had Claude Code read screenshots and the list of every button and label, tapping by name rather than guessing pixels, with no jailbreak involved. He used it for three jobs: the review video Apple asked for, App Store screenshots, and changing iPhone settings, and published the test code, the wrapper script, and every failed run with its exact error. It is not fast, he notes; the value is that run one hundred looks exactly like run one.
DEV Community · AIAI score 53
Other stories people are talking about
- Heat index 96NewDeveloper shares Claude Code context control and subagent model routing1 sources
- Heat index 98NewA guide to Claude Cowork: features, pricing, and security1 sources
- Heat index 82Developers Discuss Boundaries and Challenges of Claude Opus 5.5 in Multi-Round Code Reviews1 sources
- Heat index 94NewClaude and Kimi take down a simulated wind farm in test1 sources
- Heat index 91NewCar Owner Uses Claude AI and $15 Hardware to Pass Emissions Test1 sources
How is heat calculated?About the methodHide
Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.
This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.
- Surge
- Discussion rising fast
- New
- First report within 6 hours
- Rising
- Still gathering discussion

