Skip to content
Back to skills

Xcode Run

ASecurity

Load to install or dispatch a macOS GitHub Actions build, test or simulator screenshot run for an Xcode project.

  • 83 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 6, 2026
ai-agentsswiftbashtestinggit

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned October 6, 2026

npx -y skills add vanillagreencom/kendex --skill xcode-run --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Xcode Run?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Xcode Run
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vanillagreencom-xcode-run-kendex/badge)](https://www.skillsdirectory.com/skills/vanillagreencom-xcode-run-kendex)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: xcode-run
description: "Load to install or dispatch a macOS GitHub Actions build, test or simulator screenshot run for an Xcode project."
summary: "Installs a manual Mac workflow for Xcode builds, tests and simulator screenshots. Each run returns its logs and PNGs in one artifact."
license: MIT
user-invocable: true
metadata:
  author: vanillagreen
  source: kendex
  repository: "https://github.com/vanillagreencom/kendex"
  bugs: "https://github.com/vanillagreencom/kendex/issues"
  version: "1.0.0"
tags: [swift, testing]
repo-effects:
  summary: "Adds a manual Mac build, test and simulator screenshot workflow to this repository."
  writes:
    - ".github/workflows/mac-run.yml"
  installer: "scripts/install.sh"
  removal: "Delete .github/workflows/mac-run.yml."
  notes:
    - "An existing workflow is preserved, including its scheme and destination settings."
    - "Set XCODE_SCHEME and XCODE_DESTINATION in the installed workflow before dispatch."
---

# Xcode run

Install this skill in project scope and consent to its repository effects. kendex runs `scripts/install.sh` to add [templates/mac-run.yml](templates/mac-run.yml) as `.github/workflows/mac-run.yml`. The installer preserves an existing workflow. Commit the workflow to the default branch so GitHub can dispatch it.

## Consumer configuration

Edit the top-level `env` values in `.github/workflows/mac-run.yml`:

| Value | Meaning |
| --- | --- |
| `XCODE_SCHEME` | A shared Xcode scheme. Replace the `App` placeholder. |
| `XCODE_DESTINATION` | An Xcode destination available on `macos-latest`. Replace the example with a simulator supported by the selected Xcode. Screenshots require a concrete simulator, not a generic destination. |

The workflow runs `xcodebuild` from the repository root. A workspace, multiple projects or a project in a subdirectory needs the corresponding path or working directory in the installed workflow. The screenshot scheme must build one simulator application target. The workflow reads its app path and simulator identifier from `xcodebuild -showBuildSettings -json`. It reads the bundle identifier from the built app's `Info.plist`.

## Dispatch

`workflow_dispatch` is the only trigger. Its only input is `step`:

| `step` | Operation |
| --- | --- |
| `build` | `xcodebuild build`. This is the default. |
| `test` | `xcodebuild test`. The scheme must have a test action. |
| `screenshots` | Boot the selected simulator, build, install and launch the app, then capture `screenshots/launch.png`. |

```bash
gh workflow run mac-run.yml -f step=build
gh workflow run mac-run.yml -f step=test
gh workflow run mac-run.yml -f step=screenshots
```

Screenshots capture the launch view after a short wait. They do not navigate the app or assert that its UI is ready.

## Artifact

Each run uploads one artifact named `mac-run`:

- `logs/<step>.log`: combined command output for the selected operation.
- `screenshots/*.png`: simulator images from a screenshot run.

The upload runs with `if: always()`. A failing command fails the run and keeps its log for upload. A failed checkout or runner interruption can prevent log creation or upload.

The workflow disables code signing. It does not archive, export or deploy an app.

Files in this skill

  • SKILL.md3.2 KB
  • scripts/install.sh591 B
  • templates/mac-run.yml3.4 KB
  • tests/install.test.sh3.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.