一键导入
build-debug-macos
Build, launch, and debug macOS apps: run the target command, capture logs, capture screenshots, and summarize UI or runtime regressions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build, launch, and debug macOS apps: run the target command, capture logs, capture screenshots, and summarize UI or runtime regressions.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Build, launch, and debug iOS simulator apps: run the target command, capture logs, capture screenshots, dump accessibility state, and summarize UI or runtime regressions.
Archive, notarize, and release a macOS app — creates GitHub release, uploads zip, updates Homebrew cask.
Archive, export, upload, and distribute an iOS app to TestFlight via App Store Connect using asc.
基于 SOC 职业分类
| name | build-debug-macos |
| description | Build, launch, and debug macOS apps: run the target command, capture logs, capture screenshots, and summarize UI or runtime regressions. |
Use this skill to create deterministic artifacts for macOS app debugging without hardcoding any one repo, build system, or app name. Configure the run command and app name for the current project, then use the helper script to capture logs and screenshots.
Before running anything, determine:
RUN_CMD that builds and launches the app without opening an interactive watcher.APP_NAME — the process name for pgrep and window activation.LOG_PREDICATE for log stream.Prefer a command that exits after launch. If the normal workflow uses a long-running watcher, derive a non-interactive build-and-launch command for artifact capture.
Run the macOS helper against the project root:
RUN_CMD='xcodebuild -scheme Example build && open build/Debug/Example.app' \
APP_NAME='Example' \
${CLAUDE_SKILL_DIR}/scripts/capture_macos_debug.sh /path/to/repo
Environment variables:
RUN_CMD (required): Build/launch command executed with bash -lc.APP_NAME (required): Process name used for pgrep and window activation.LOG_PREDICATE (optional): Custom log stream predicate. Defaults to process == "APP_NAME".WAIT_FOR_SECONDS (optional): Seconds to wait for the app to appear. Defaults to 10.OUT_DIR (optional): Artifact directory. Defaults to /tmp/apple-macos-debug.The script prints:
APP_PIDAPP_RUNNINGRUN_STATUSRUN_EXIT_CODERUN_LOGLOG_FILESCREENSHOTFor basic UI interaction, use AppleScript UI scripting after granting Accessibility permission to Terminal:
osascript -e 'tell application "System Events" to click button "Continue" of window 1 of process "Example"'
Prefer XCTest UI tests when repeated or robust macOS automation is needed.
Always return:
RUN_CMD exited, failed, or was still running during capture.expected or unexpected.