CI Perf Lint

avoid-xcode-install-on-hosted-macos

What it flags

Flags GitHub-hosted macOS jobs that visibly install or download Xcode during CI.

Examples include:

The rule extracts a requested Xcode version when it is visible, but it does not claim that the version is already present on the runner image.

Why it matters

GitHub-hosted macOS runner images usually include multiple Xcode versions. Installing or downloading Xcode during every CI run can add very large setup time before the actual iOS or macOS build starts.

If the requested Xcode version is already present, selecting it with xcode-select or DEVELOPER_DIR is usually much cheaper than installing it.

Current heuristic

The rule requires all of the following:

The rule intentionally does not flag:

When to ignore it

Ignore this finding when:

Suggested verification

Sources