Skip to content

feat: add rtk xcrun / rtk simctl wrapper for iOS simulator commands #2030

Open

Description

@Mino777

feat: add rtk xcrun / rtk simctl wrapper for iOS simulator commands

Problem

xcrun simctl is the standard CLI for iOS Simulator automation (used by every iOS developer working with Claude Code, Cursor, Codex, etc.). Its output is plist-formatted and large — uncompressed it dominates LLM context windows.

Measured impact (gma-ios project, 30 days via rtk discover)

Command          Count   Example
xcrun simctl      1028   xcrun simctl listapps <UDID>
  • xcrun simctl listapps <UDID> → 31,835 bytes per call (OpenStep plist)
  • xcrun simctl list devices → 5,194 bytes
  • At ~4 chars/token: ~250K tokens/day wasted on plist output that LLMs only need 3-5 fields from

Proposed solution

Add rtk xcrun (or rtk simctl) subcommand that:

  1. listapps → strip plist envelope, return JSON array of {bundleID, displayName, path, sdk}
  2. list devices → compact table of {udid, name, state, runtime} only — skip unavailable runtimes
  3. list runtimes → version + identifier only
  4. bootstatus / getenv → pass through (already compact)

Example before/after

Before (31 KB):

{
    BundleContainer = "file:///Users/.../Containers/Bundle/Application/.../";
    CFBundleDisplayName = GreenCar;
    CFBundleExecutable = GreenCar;
    CFBundleIdentifier = "com.lotte.green-car";
    ...
}

After (rtk simctl listapps <UDID>, ~500 bytes):

[{"bundleID":"com.lotte.green-car","name":"GreenCar","sdk":"iphonesimulator"}]

Why high priority

iOS development with Claude Code / Cursor is a fast-growing use case. Every iOS LLM agent hits xcrun simctl constantly for app install / launch / UI inspection. Currently it's the #1 unhandled command in rtk discover for our codebase.

Related

TOP UNHANDLED COMMANDS -- open an issue?
xcrun simctl              1028    xcrun simctl listapps <UDID>

Environment

  • RTK 0.40.0 (Homebrew, macOS arm64)
  • Use case: gma-ios — Swift/RIBs/SwiftUI app with iOS Simulator E2E tests via Claude Code workers

Activity

  1. added
    enhancement
    help wanted
    on May 27, 2026
  2. pszymkowiak commented on May 27, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 97%

    Summary

    Feature request to add rtk xcrun/simctl wrapper that compresses verbose plist output from iOS simulator commands into compact JSON; well-scoped and data-backed but platform-specific.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clienhancementhelp wantedplatform:macospriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions