DEV Community

Cover image for Every iOS screen has 12 combinations to check. I was checking one, so I handed the rest to Claude Code
The Paste-Ready Engineer
The Paste-Ready Engineer

Posted on Edited on

Every iOS screen has 12 combinations to check. I was checking one, so I handed the rest to Claude Code

A user on a small iPhone told me my bottom button was cut off. I had never once opened that screen on a small iPhone.

TL;DR

  • Claude Code can drive the iOS Simulator with simctl, the command-line tool that ships with Xcode, and it can read the screenshots it takes
  • That means you can hand it the checks everyone skips: the small iPhone, dark mode, the largest text size, across several devices at once
  • Your job shrinks to reading one table and deciding what to fix

The problem isn't one check. It's the combinations.

Checking an iOS screen once is easy. The pain is the matrix:

  • Devices: a small iPhone, a standard one, a Pro Max
  • Appearance: light, dark
  • Text size: default, largest

That's 3 × 2 × 2 = 12 combinations for every screen you touch. Nobody does that by hand on every change. I certainly didn't. I checked "my phone, light mode, default text" and shipped.

Then someone on a small iPhone tells you the bottom button is cut off.

This post is about giving that whole matrix to Claude Code.

Claude Code can actually "touch" the Simulator

What simctl can do

If you have Xcode, you already have simctl. Claude Code runs terminal commands, so it can run these too. Everything below worked on my machine:

# list booted devices
xcrun simctl list devices booted

# take a screenshot
xcrun simctl io <UDID> screenshot a.png

# launch an app
xcrun simctl launch <UDID> <bundle id>

# dark mode
xcrun simctl ui <UDID> appearance dark

# largest accessibility text size
xcrun simctl ui <UDID> content_size accessibility-extra-extra-extra-large

# open a URL or deep link
xcrun simctl openurl <UDID> <URL>

# pin the status bar clock to 9:41
xcrun simctl status_bar <UDID> override --time 9:41
Enter fullscreen mode Exit fullscreen mode

The UDID is each simulator's ID. You'll see it next to the device name in the list output.

The key part: Claude Code can read images. So it can take a screenshot, look at it, and tell you what's wrong, all on its own.

Tapping needs one more tool

simctl can't tap or swipe. If your check needs navigation, add something that can:

  1. The Claude desktop app. The Code tab has built-in simulator tools. I confirmed it can tap through screens.
  2. An MCP server such as XcodeBuildMCP or ios-simulator-mcp. MCP is how you plug external tools into Claude Code.
  3. Deep links. If your app can open screens by URL, simctl openurl gets you there with no tapping.

If you only care about the launch screen, simctl alone is enough.

Try it in 3 steps

On a Mac with Xcode, open Claude Code and:

  1. Boot one simulator (from Xcode, or open -a Simulator)
  2. Paste this:
Open the Settings app on the booted iOS simulator,
take screenshots in dark mode and at the largest text size,
and check for clipping or truncated text. Restore the settings when done.
Enter fullscreen mode Exit fullscreen mode
  1. Read the report

When I tried this, even Apple's own Settings app broke the word "Account" across two lines at the largest text size. Your app will probably have more to show.

What to check: the four things humans skip

The checks worth delegating are exactly the ones you skip when doing it by hand.

Small screens. Bottom buttons get cut off. The keyboard covers input fields.

Largest text size. Text truncates with "…", words break mid-word, elements overlap.

Dark mode. Text disappears into the background. White images or cards glow.

Large screens (Pro Max). Spacing looks stretched. Elements hug the edges.

Just writing "check these four conditions" in your prompt cuts down what gets missed.

Check several devices at once

You can boot multiple simulators and screenshot them in parallel. On my machine, five booted devices took about 0.8 seconds:

xcrun simctl list devices booted -j \
  | python3 -c "import json,sys;[print(d['udid']) for v in json.load(sys.stdin)['devices'].values() for d in v]" \
  | while read u; do xcrun simctl io "$u" screenshot "$u.png" & done; wait
Enter fullscreen mode Exit fullscreen mode

You don't need to write this yourself. Ask Claude Code to "screenshot every booted device and compare," and it builds something like it.

Four tips that made it reliable

1. Target devices by UDID

simctl accepts booted as a shortcut, but with several simulators running it may hit the wrong one. Tell Claude Code to always use the UDID.

2. Wait after switching

Right after switching to dark mode or a new text size, I sometimes captured a half-transitioned, dim screen. "Wait 2 seconds after switching" fixed it.

3. Shrink screenshots before reading them

Image tokens scale roughly with image size, and simulator screenshots are around 2,500px tall. macOS ships with sips:

sips -Z 1000 a.png
Enter fullscreen mode Exit fullscreen mode

That caps the long edge at 1000px. For me, files came out about a quarter of the size, and clipping and truncation were still easy to spot.

4. Give the clicking to a cheaper model

Reading dozens of screenshots bloats the main conversation fast. So hand operating and capturing to a subagent: a separate worker with its own context that returns only a short report.

I use Sonnet for the operator and keep the main session for judgment. In my test, two Sonnet subagents captured different devices in parallel, and the main session only received two 5-line reports.

What it can't do

  • Real performance. The Simulator runs on your Mac's hardware, so speed tells you nothing.
  • Hardware. Camera, sensors, how push notifications actually arrive.
  • Taste. Whether the design is good is still your call.

Treat it as a wide net for visual breakage, not a replacement for a real device.

Wrap-up

  • Claude Code can drive the Simulator with simctl and read its own screenshots
  • Add the desktop app's tools or an MCP server when you need taps
  • Delegate the four skipped checks (small, largest text, dark, large) across devices
  • UDIDs, a short wait, shrunk screenshots, and a cheaper operator model keep it stable

Twelve combinations by hand becomes one table to read.

Over to you: which combination do you always skip: the small iPhone, dark mode, or the largest text size? Tell me in the comments. I'm curious whether it's the same one for everyone.

Want it as one command?

Everything above works with plain prompts. But retyping the same instructions gets old, and every time I did, I forgot one detail: the UDID, the wait, the resize, or restoring the settings.

So I packaged it as a Claude Code skill. Paste one block into your terminal, and from then on /ios-check will:

  • Find your project and scheme, build for the Simulator, and install
  • Pick small, medium, and large devices and boot them
  • Capture each in light, dark, and largest text (in parallel, auto-resized)
  • Hand operating and capturing to a Sonnet subagent, so the main session only judges
  • Check for clipping, truncation, overlap, and dark-mode color issues
  • Report a device × condition table plus the top 3 fixes
  • Restore appearance and text size when done

It's for people who want a multi-device visual check before every release. If you only glance at one device now and then, the prompts above are enough.

👉 Get the skill: https://gennekiengineer.gumroad.com/l/ios-check

📦 Testing iOS apps a lot? This skill is also part of the iOS QA Kit: all 4 of my iOS QA skills for $29 instead of $36.

If this was useful, a ❤️ and a follow would mean a lot. I write about practical ways to put AI to work in indie development.

Top comments (9)

Collapse
 
mosmox_studio profile image
Mosmox Studio •

One more cheap axis for the matrix: language. xcrun simctl launch <UDID> <bundle id> -AppleLanguages "(de)" starts the app in German without touching the simulator settings, and long German strings break buttons that survive the largest text size. Swap in Arabic and you get an RTL pass for free.

Collapse
 
copy_and_paste_engineer profile image
copy_and_paste_engineer •

Great tip, I hadn't tried that. Long German strings breaking buttons that survive the largest text size sounds very real, and getting an RTL pass for free with Arabic is a nice bonus. I'll try adding a language axis.

Collapse
 
hyunsoo_xenoci profile image
Hyunsoo Ju •

The part I'd add for people who don't have a Mac at all: the matrix still works, it just has to run wherever Xcode lives, and the screenshots have to come back to the agent. What made that usable for me was keeping the loop identical to yours (set appearance and content size, terminate, relaunch, screenshot) but writing every capture to a file named after its combination, like se-dark-xxxl.png. Then the agent's report is just "these three files look wrong", and I can open exactly those instead of scrolling a gallery.

One thing I learned the hard way: pin the status bar (your 9:41 override) before the first capture, not after. Otherwise the diff between two runs is full of clock and battery changes and the real clipping gets lost in the noise.

Collapse
 
userxnom profile image
Abdullah Naseer •

The framing that sold me is the matrix itself: 3 devices × light/dark × default/largest text is 12 combinations per screen, and nobody does that by hand on every change — so the checks everyone skips are exactly the ones that break in production, like your bottom button cut off on a small iPhone. The simctl details are what make this actionable rather than aspirational: appearance dark, content_size accessibility-extra-extra-extra-large, and pinning the status bar clock to 9:41 so screenshots are comparable. Two tips I would underline: shrinking screenshots with sips -Z 1000 before Claude reads them, since 2,500px-tall simulator shots bloat image tokens, and handing the operating to a Sonnet subagent so the main session only does judgment. The detail that even Apple's own Settings app breaks "Account" across two lines at the largest text size is the perfect proof that this is a real problem, not a theoretical one. One question: when you boot five devices and switch them all to dark mode at once, how do you keep the captures from drifting — do you wait for each simulator's render to settle before screenshotting, and does the "wait after switching" rule hold up when five devices switch in parallel?

Collapse
 
copy_and_paste_engineer profile image
copy_and_paste_engineer •

Thanks for reading this so closely! Each device runs its own sequence in parallel: switch appearance/text size, terminate and relaunch the app, then sleep. Relaunching helps a lot, because the app starts fresh in the new mode instead of animating the transition. The wait is a WAIT variable in the script (default 2s). I haven't measured drift carefully with five devices switching at once, so if your Mac is under load, bumping it to 3–4s is the cheap fix.

Collapse
 
jpuidev profile image
JPUI •

Did you end up snapshot-testing all 12, or only the ones where large Dynamic Type and the smallest screen overlap? That pair seems to catch most clipped bottom buttons.

Collapse
 
copy_and_paste_engineer profile image
copy_and_paste_engineer •

Not all 12, actually. The skill captures 9: three devices × light, dark, and largest text (it skips dark + largest text). And yes, small screen + largest text is where most of my clipped bottom buttons showed up too. If I had to keep only one combination, it'd be that one.

Collapse
 
jpuidev profile image
JPUI •

Thanks for the correction, 9 makes sense. Dark + largest text rarely catches anything that light + largest text hasn't already shown. And small screen + largest text would be my one keeper too; that's where fixed-height bottom bars give up first.

Thread Thread
 
copy_and_paste_engineer profile image
copy_and_paste_engineer •

Exactly, fixed-height bottom bars were my worst offenders too. Switching them to respect the safe area and grow with the text fixed most of what the small-screen + largest-text run caught. Thanks for the sharp questions, they made me double-check my own numbers!