/scout:scout-build-settingsfrom scout
Extracts Xcode build settings per target using `scout build-settings`. Useful for querying Swift version, deployment target, and other project configuration across commits. macOS only.
Ships in scout. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
scout build-settingsRead build settings from every discovered .xcodeproj, per target, in the current working tree or across commits. Shells out to xcodebuild, so it is macOS only.
Run scout build-settings --help for flags — it is the source of truth. This file covers what the help does not say.
Nothing runs without --include (CLI) or projects.include (config). Patterns are globs — * within a segment, ** across segments, ? for one character. **/*.xcodeproj is the usual start.
Put the settings you want before --include. --include and --exclude consume every following word until the next flag, so scout build-settings --include "**/*.xcodeproj" SWIFT_VERSION swallows SWIFT_VERSION as a glob and runs zero metrics — logging Will analyze 0 commit(s) for 0 metric(s), exiting 0, writing no output. Same trap with --commits.
**/*.xcodeproj sweeps far more than your app. On this repository it discovered 37 projects — SPM checkouts under .build, test fixtures, worktree copies — and mixed their Swift versions into the answer. Exclude .build, Pods, DerivedData, Carthage and any vendored tree, then read the projects array and confirm it lists what you expected before trusting a single number.
{
"projects": {
"include": ["MyApp/**/*.xcodeproj"],
"exclude": ["Pods/**"],
"continueOnMissing": true
},
"configuration": "Debug",
"metrics": [
{ "setting": "SWIFT_VERSION" },
{ "setting": "IPHONEOS_DEPLOYMENT_TARGET", "commits": ["abc123"] }
],
"setupCommands": [
{ "command": "mise install", "optional": true },
{ "command": "tuist install", "workingDirectory": "MyApp", "optional": true },
{ "command": "tuist generate --no-open", "workingDirectory": "MyApp", "optional": true }
]
}
configuration defaults to Debug; settings can differ per configuration, so say which one a number came from.
setupCommands run at every commit before discovery — this is how generated projects get generated. workingDirectory is relative to the repository root. A command with shell operators (|, &&) runs through /bin/sh; a plain one runs directly. optional: true lets the run continue when the command fails, which is what makes ancient commits survivable.
On old commits the generator or its dependencies are often gone, and no .xcodeproj appears. What happens then is worth knowing exactly, because it is not what --help says: any failure at a commit — no projects found, xcodebuild blowing up, a setup command dying — is caught, logged as a warning ... Skipping commit due to error, and the commit is emitted with empty targets. The run continues and exits 0 with or without --continue-on-missing-project. (The help claims the default is to fail; the code disagrees. Don't build a CI gate on the exit code.)
So the hazard is not losing the run, it is quietly charting zeros. An empty-target result is indistinguishable from "the setting is unset everywhere":
{ "commit": "e18beffdf4", "date": "2024-03-10T11:17:36Z",
"results": [ { "setting": "SWIFT_VERSION", "targets": {} } ] }
Check targets == {} before plotting, and read the stderr warnings — that is the only place the reason shows up. Keep optional: true on setup commands anyway, so a dead generator doesn't take the rest of the commit's work with it.
{
"commit": "abc1234def5678",
"date": "2025-01-15T07:30:00Z",
"projects": [
{ "path": "/Users/you/Developer/myapp/MyApp/MyApp.xcodeproj", "targets": ["MyApp", "MyAppTests"] }
],
"results": [
{ "setting": "SWIFT_VERSION", "targets": { "MyApp": "5.0", "MyAppTests": "5.0" } }
]
}
Three things are specific to this subcommand:
projects field says which project declares which target. Target names alone don't: MyAppTests belongs to MyApp, but MenuSearch next to Menu is a different project. Its path is absolute, whatever the SDK doc-comment claims.results[].targets is keyed by target name alone, across all discovered projects — same name, last one wins. On this repository **/*.xcodeproj found ten separate projects each declaring a TestApp target, and targets came back with a single TestApp entry. So grouping by projects[].path only works when target names are unique: check projects for repeated names first, and if they repeat, narrow --include to one project at a time instead of reporting per module.null, not a missing key. null and "" are different answers — treat null as "inherits or unset".scout build-settings SWIFT_VERSION --include "**/*.xcodeproj" --exclude ".build/**" --output /tmp/bs.json
jq -r '.[-1].results[] | .setting as $s | .targets | to_entries[] | "\($s)\t\(.key)\t\(.value // "—")"' /tmp/bs.json
No --commits, so scout reads the files as they are — uncommitted changes included — and changes nothing in git: no checkout, no clean. Start here; replay history only when the question is about change over time.
jq -r '.[-1].results[] | select(.setting == "SWIFT_VERSION") | .targets | to_entries
| group_by(.value)[] | "\(.[0].value // "null")\t\(length)"' /tmp/bs.json
jq -r '.[-1].results[] | select(.setting == "SWIFT_STRICT_CONCURRENCY")
| .targets | to_entries[] | select(.value == null) | .key' /tmp/bs.json
Only sound when no target name repeats across projects — see the result shape above.
jq -r '.[-1] as $o | $o.projects[] | .path as $p | .targets[] as $t
| $o.results[] | select(.setting == "SWIFT_VERSION")
| [$p, $t, (.targets[$t] // "—")] | @tsv' /tmp/bs.json
jq -r '.[] | .date as $d | .results[] | select(.setting == "SWIFT_VERSION")
| [$d, (.targets | to_entries | map(.value) | unique | join(","))] | @tsv' /tmp/bs.json
--include / --exclude / --commits; they get eaten and the run does nothing, loudly enough to miss.projects — and check it for duplicate target names before reporting per module.**/*.xcodeproj without an exclude; dependency and fixture projects land in the same answer.null as "off" — it means the target doesn't set it.configuration values.scout (umbrella) — output envelope, per-metric commits, --git-clean footgun, detached HEAD after a historical run.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
xcode-build-settings, scout, project-configuration, ios, macos
npx claudepluginhub dodobrands/scout --plugin scout6 skills in this plugin
/scoutPlan and run a multi-metric measurement of a repository with the `scout` CLI, and pick which subcommand a request needs. Trigger on cross-cutting intent rather than a single number, e.g. "build a dashboard of codebase metrics", "measure how this repo changed over two years", "I need numbers for the UIKit-to-SwiftUI migration from several angles", "set up a monthly metrics job in CI", "what can we even measure about this codebase?", "which scout command do I want for this?", "collect these metrics at the same commits so the series line up", "how do I run this over history without wrecking my working copy?". Also the place for anything shared across metrics — replaying over git history, the output envelope, config vs CLI precedence, and the ways a historical run damages a working checkout. Single-axis questions belong to `scout-types`, `scout-files`, `scout-pattern`, `scout-loc` or `scout-build-settings`./scout-filesCount files by extension with `scout files` and replay that count over git history. Use it whenever the answer is a per-extension inventory or how one moved over time — "сколько сторибордов было год назад и сколько сейчас", "how many yml files were in .github a year ago versus now", "how did the markdown file count change per quarter", "file counts for swift, storyboard and xib at these three commits", "a burn-down of our graphql files across the last 12 months as data I can chart", "export swift/storyboard/xib counts as json every month for Grafana", "an inventory of every .sh file with its path", "track the disappearance of our .nib files, one point per quarter". Any extension counts, not only iOS ones. A bare count in the current checkout is a job for find; this skill earns its place when the question spans commits, needs the paths, or has to produce data that lines up with the other scout metrics. It counts files, never their size on disk.Other plugins' skills for the same job