ios-test
Build, launch, and visually test iOS/SwiftUI apps in the Simulator using computer use. Automated screen navigation, crash log analysis, state testing…
от yusufkaran★ 24 звезды на GitHub
Установить ios-test в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
iOS Test Skill
Overview
Use this skill to build an iOS/SwiftUI application, launch it in the Simulator, and visually test it using computer use. The skill navigates through every screen, screenshots each state, checks crash logs, and produces a structured test report — without writing a single line of test code.
Options
--flow=<name>: Test a specific user flow (e.g., onboarding, login, checkout)--screen=<ViewName>: Test only a specific screen--device=<name>: Choose a Simulator device (e.g., "iPhone 16", "iPhone SE")--scheme=<name>: Specify the Xcode scheme--states: Test empty, error, and loading states via launch arguments--screenshot-all: Screenshot every step--performance: Measure RAM per screen and check for memory leaks (skipped by default)
Workflow
1) Project Discovery
- Find
.xcodeprojor.xcworkspacein the working directory- Prefer
.xcworkspaceif it exists (CocoaPods/SPM workspace) - If multiple exist, ask the user which one to use
- If none found, stop with an error
- Prefer
- List available schemes:
xcodebuild -list -workspace MyApp.xcworkspace- Use
--schemeif provided - If only one scheme exists, use it automatically
- If multiple, ask the user
- Use
2) Simulator Selection (BEFORE build)
IMPORTANT: Simulator must be selected BEFORE building. The build command uses the selected device name.
- If
--deviceis provided: find that device viaxcrun simctl list devices --json - If
--deviceis not provided, check booted simulators:xcrun simctl list devices booted --json- No booted simulator: list available devices with
xcrun simctl list devices available --json, suggest the best iPhone match, ask for confirmation, then boot it - One booted simulator: use it directly, no questions
- Multiple booted: list them and ask the user which one to use
- No booted simulator: list available devices with
3) Accessibility Check (MANDATORY — DO NOT SKIP)
This step is MANDATORY. Runs BEFORE build. NEVER skip this step.
- Scan SwiftUI files in the project — look for
struct...: Viewpatterns in*.swiftfiles - Count interactive elements:
Button,TextField,SecureField,Toggle,Slider,Picker,DatePicker,NavigationLink,Image,.onTapGesture - Check how many have
.accessibilityIdentifier() - ALWAYS ask the user (this question cannot be skipped):
Accessibility Scan Result:
Total interactive elements: XX
With identifier: XX
Missing identifier: XX
Identifiers help me find elements more reliably during testing.
Run /add-accessibility to add identifiers now?
→ Yes: adds identifiers, then builds and continues to testing
→ No: builds directly and uses coordinate-based testing (slower and more fragile)
- WAIT for the user's response. Do not proceed without an answer.
- If yes → run the full
/add-accessibilityworkflow (scan, generate, apply), then continue to step 4 (Build) - If no → continue to step 4 (Build) directly
4) Build
- Build the selected scheme using the device chosen in step 2:
NEVER hardcode a device name. Always use the device selected in step 2.xcodebuild build \ -workspace MyApp.xcworkspace \ -scheme MyApp \ -destination 'platform=iOS Simulator,name=<SELECTED_DEVICE>' \ -derivedDataPath ./DerivedData \ 2>&1 - If build fails: analyze errors, suggest fixes, and STOP — never proceed to testing with a failed build
- Report build warnings (but don't stop)
5) Install & Launch
- Find the built
.appfile:find ./DerivedData -name "*.app" -path "*/Debug-iphonesimulator/*" | head -1 - Get the bundle identifier:
plutil -p /path/to/MyApp.app/Info.plist | grep CFBundleIdentifier - Install and launch:
xcrun simctl install booted /path/to/MyApp.app xcrun simctl launch booted <BUNDLE_ID>
6) Visual Testing with Computer Use
IMPORTANT: This phase requires the computer-use MCP server to be enabled.
If computer use is not enabled, tell the user:
Computer use is not enabled. Required for visual testing.
Run /mcp and enable the computer-use server.
Default test (no arguments)
Discover and test all main screens:
- TabView present → tap each tab, inspect each screen
- NavigationStack present → tap each navigation link, go back
- On each screen check:
- Layout renders correctly (no overflow, overlapping, or empty areas)
- Buttons are tappable
- Scroll works and content is visible
- Text is readable (not too small, not truncated)
- Screenshot each screen
With --flow=<name>
Test the specified user flow:
- onboarding: swipe through onboarding screens, complete all steps
- login: fill email/password fields ([email protected] / Test1234), tap login, verify next screen
- signup: fill the registration form, tap signup
- checkout: navigate to cart, complete the payment flow
- **set
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ios-test?
Build, launch, and visually test iOS/SwiftUI apps in the Simulator using computer use. Automated screen navigation, crash log analysis, state testing (empty/error/loading), and memory leak detection. Use when you need to test an iOS app, run it in the Simulator, check for crashes, or verify UI flows.
Как установить скилл ios-test?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ios-test запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…