ios-simulator

Manage iOS Simulator devices and app testing workflows via xcrun simctl.

Updated May 10, 2026
One-click install
npx skills add https://github.com/FelixRauch/medat-figuren --skill ios-simulator-felixrauch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ios-simulator
Source: https://github.com/FelixRauch/medat-figuren/tree/main/.agents/skills/ios-simulator
Command: npx skills add https://github.com/FelixRauch/medat-figuren --skill ios-simulator-felixrauch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It eliminates inconsistent iOS Simulator behavior by providing a repeatable command-line workflow to manage simulator devices, deploy the app, simulate runtime inputs (push, location), and capture deterministic debugging artifacts.

Core Features & Use Cases

  • Device lifecycle management: Create, boot, erase, and delete simulators with clean setup/teardown patterns to prevent CI flakiness.
  • App install, launch, and introspection: Install a built simulator .app, launch with arguments or console output, terminate runs, and inspect sandbox containers via get_app_container.
  • Runtime simulation for QA and debugging: Simulate local push payload delivery, spoof GPS locations, grant/revoke privacy permissions, and trigger deep links/universal links via openurl.
  • Deterministic media and logs: Capture screenshots and screen recordings with bezel-masking options, stream logs with log stream using subsystem/category filtering, and debug boot failures.
  • Simulator-aware code paths: Use compile-time simulator checks (#if targetEnvironment(simulator)) to avoid calling APIs unavailable in Simulator.

Quick Start

Start by listing available simulators with xcrun simctl list devices available, pick a device runtime, then create and boot a fresh device before installing and launching your app.

Frequently Asked Questions about ios-simulator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iOS Simulator device management for CI testing?

Automate iOS Simulator lifecycle by using xcrun simctl to safely create, boot, erase, and delete devices, ensuring clean setup and teardown to prevent CI flakiness. This provides a repeatable command-line workflow for reliable app tests.

Can I simulate push notifications and GPS location on an iOS Simulator?

Yes, you can simulate runtime inputs on an iOS Simulator by using xcrun simctl to deliver local push payloads, spoof GPS locations, and trigger deep links. This allows comprehensive QA and debugging without physical hardware.

What is the best way to capture deterministic screenshots from an iOS Simulator?

Capture deterministic screenshots and screen recordings from an iOS Simulator using xcrun simctl media capture, which supports bezel-masking options. This ensures consistent debugging artifacts across test runs.

How do I handle APIs unavailable in the iOS Simulator during app development?

Handle unavailable APIs in the iOS Simulator by using compile-time simulator checks like `#if targetEnvironment(simulator)` to create simulator-aware code paths. This prevents runtime crashes when testing features unavailable in the Simulator.

Why does my iOS Simulator boot fail during automated app testing?

iOS Simulator boot failures during app testing can be debugged by streaming logs with xcrun simctl log stream using subsystem and category filtering. This helps identify runtime issues or conflicting simulator states.