skillfed

simulator-utils

simulator-utils streamlines iOS development by automating screenshot capture and resizing within the simulator environment. Perfect for testing UI consistency across different device configurations and verifying API compatibility without manual image processing. Works seamlessly with Claude Code and other coding agents to accelerate your iOS workflow.

simulator-utils provides automated screenshot capture for iOS simulator devices. Use xcrun simctl screenshot commands to capture the current simulator state directly to file or clipboard. The tool streamlines this process so you can quickly grab UI snapshots across different device configurations without manual steps.

AI-generated summary based on this skill's SKILL.md

291 16 MIT updated by Prisma-Labs-Dev

Install

Prisma-Labs-Dev/apple-skills/simulator-utils · repository language: TypeScript

CLI (skillfed)coming soon
git clone https://github.com/Prisma-Labs-Dev/apple-skills
cp -r apple-skills/skills/simulator-utils ~/.claude/skills/simulator-utils

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I take screenshots in iOS simulator?

simulator-utils provides automated screenshot capture for iOS simulator devices. Use xcrun simctl screenshot commands to capture the current simulator state directly to file or clipboard. The tool streamlines this process so you can quickly grab UI snapshots across different device configurations without manual steps.

What is xcrun simctl screenshot resize used for?

simulator-utils wraps xcrun simctl screenshot and resize operations to handle API compatibility constraints. Many APIs like Claude have image size limits; simulator-utils automates resizing captured screenshots to meet those requirements, eliminating manual image processing and enabling seamless integration with coding agents.

How does simulator-utils help with iOS simulator device management?

simulator-utils automates the full iOS simulator lifecycle—booting devices, installing apps, launching them, and capturing results. It consolidates common xcrun simctl commands for device state operations, app installation, and lifecycle management into a unified workflow, reducing repetitive terminal commands during development.

Can simulator-utils batch process and resize images?

Yes. simulator-utils leverages macOS sips commands to batch resize PNG images captured from the simulator. This is especially useful when you need to process multiple screenshots at once for API limits or consistency testing across device sizes without writing custom image manipulation scripts.

What simulator utils xcrun commands are available?

simulator-utils provides reference and automation for key xcrun simctl operations: screenshot capture, device boot/erase, app install/launch, and video recording. It also surfaces sips image resize capabilities and common troubleshooting commands for simulator errors and device state issues, serving as a cheat sheet for iOS development workflows.

How does simulator-utils work with Claude Code?

simulator-utils integrates seamlessly with Claude Code and other coding agents to automate screenshot capture and resizing within your development workflow. This acceleration is perfect for testing UI consistency across device configurations and verifying API compatibility without interrupting your coding session with manual image processing.

SKILL.md

rendered from the published skill — quoted content, verbatim

Simulator Utilities

Quick reference for iOS Simulator commands. Use these patterns whenever working with simulators.

Screenshot with Auto-Resize (REQUIRED)

ALWAYS use this pattern when taking screenshots to avoid API errors:

# Single command: screenshot + resize
xcrun simctl io booted screenshot /path/to/screenshot.png && sips --resampleHeightWidthMax 1800 /path/to/screenshot.png
Why Resize?
  • iPhone 17 simulator screenshots exceed 2000px
  • Claude API rejects images >2000px in multi-image requests
  • sips --resampleHeightWidthMax 1800 keeps images under limit
Resize Existing Screenshots
# Single file
sips --resampleHeightWidthMax 1800 /path/to/screenshot.png

# Multiple files
sips --resampleHeightWidthMax 1800 /path/to/*.png

# Batch resize all PNGs in directory
for f in /path/to/dir/*.png; do sips --resampleHeightWidthMax 1800 "$f"; done

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
skills/simulator-utils/SKILL.md

Related skills

Tags

xcode-automation image-resizing ios-testing cli-reference simulator-management batch-processing api-constraints macos-tools