Skip to content
GuidesChecked 20 November 2026

Swift Package.swift settings counted

12 settings words counted in Package.swift files on GitHub as of 1 November 2026.

Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.

All twelve words

exact is in 15,168 Package.swift files, the most of the 12 words.

buildToolPlugin is in 428 files, the fewest, so exact is in 35 times as many.

Package.swift files, all 12 words
WordFiles
exact15,168
swiftLanguageModes9,104
binaryTarget8,608
unsafeFlags7,712
branch7,104
upToNextMajor6,272
enableUpcomingFeature5,920
enableExperimentalFeature2,624
upToNextMinor2,276
revision2,244
defaultIsolation996
buildToolPlugin428

Pinning

exact is in 2.1 times the files of branch, the next pin.

exact is in 2.4 times the files of upToNextMajor, which accepts any later release up to the next major version.

Package.swift files by version rule
Version ruleFiles
exact15,168
branch7,104
upToNextMajor6,272
upToNextMinor2,276
revision2,244

Per 100 exact

upToNextMajor is in 41.4 files per 100 with exact, upToNextMinor in 15.0 and revision in 14.8.

branch is in 46.8 files for every 100 with exact.

upToNextMajor is in 2.8 times the files of upToNextMinor, and branch in 3.2 times those of revision.

Package.swift files per 100 with exact
WordPer 100 exact
branch46.8
upToNextMajor41.4
upToNextMinor15.0
revision14.8

Targets and settings

swiftLanguageModes is in 9,104 files, 1.1 times binaryTarget.

Package.swift files by target or setting
Target or settingFiles
swiftLanguageModes9,104
binaryTarget8,608
unsafeFlags7,712
enableUpcomingFeature5,920
enableExperimentalFeature2,624
defaultIsolation996
buildToolPlugin428

unsafeFlags

unsafeFlags passes raw compiler flags to a target, and the package manager refuses it in a dependency.

unsafeFlags is in 7,712 files, 1.3 times enableUpcomingFeature.

enableUpcomingFeature is in 2.3 times the files of enableExperimentalFeature.

unsafeFlags is in 2.9 times the files of enableExperimentalFeature, with 7,712 against 2,624.

defaultIsolation is in 996 files, 2.3 times buildToolPlugin with 428.

Per 100 modes

unsafeFlags is in 84.7 files per 100 with swiftLanguageModes and enableUpcomingFeature in 65.0.

binaryTarget is in 94.6 files for every 100 with swiftLanguageModes.

enableExperimentalFeature is in 28.8 per 100, defaultIsolation in 10.9 and buildToolPlugin in 4.7.

Package.swift files per 100 with swiftLanguageModes
WordPer 100 modes
binaryTarget94.6
unsafeFlags84.7
enableUpcomingFeature65.0
enableExperimentalFeature28.8
defaultIsolation10.9
buildToolPlugin4.7

Seven pairs

Seven pairs of words set one against another, and the ratios run from 1.3 to 9.1.

swiftLanguageModes is in 9.1 times the files of defaultIsolation.

exact is in 1.7 times the files of swiftLanguageModes and 2.1 times those of branch.

Seven pairs of words, as a ratio of files
PairRatio
modes / isolation9.1
branch / revision3.2
toMajor / toMinor2.8
upcoming / experimental2.3
exact / branch2.1
exact / modes1.7
unsafe / upcoming1.3

The rarest

buildToolPlugin is in 428 files, the fewest of the 12.

Package.swift files, the four least common words
The four least common wordsFiles
upToNextMinor2,276
revision2,244
defaultIsolation996
buildToolPlugin428

By group

The settings spread 21 to 1, and the version rules 6.8 to 1.

Package.swift files, the most and the fewest of each group
GroupMostFewest
Version rules15,1682,244
Targets, settings9,104428

What is in the file

A count for each word

5 version rules and 7 target and setting words, counted in Package.swift files.

Words set against a base

Version rules per 100 exact, and settings per 100 swiftLanguageModes.

Ratios you can quote

exact is in 2.1 times the files of branch.

No code and no names

The file holds counts only, with no repository and no developer.

How the files were counted

One search per word.

Write 12 searches

Each search names one manifest word, matched as exact text in files with Package.swift in the name.

Ask the code search

One request per search, spaced at least seven seconds apart.

Ask again when incomplete

When the service called a result incomplete, the search was asked again, up to three times.

Keep the count

A CSV row keeps the word, the group, the count and the search that was run, and nothing from any manifest.

How a board package should be versioned

Manifests pin dependencies exactly more often than they allow a range. The exact rule is in 15,168 files, branch in 7,104, upToNextMajor in 6,272 and upToNextMinor in 2,276. A board package tagged with semantic versions can be added under any of these rules, and exact pins need a tag for each release.

A prebuilt framework is as common as an unsafe flag, with binaryTarget in 8,608 files and unsafeFlags in 7,712. A source only package avoids both.

What these numbers leave out

  • These are files and not packages or releases, and not how many dependencies a file pins.
  • Large counts are rounded, so two words within 10 percent of each other count as level.
  • The search ignores case, and a word in a comment counts like a word in a setting.
  • The plain from: pin is not counted, so it is missing from the version rules.
  • Copied manifests count each time they appear, and no manifest was read.
  • Only public repositories are searched, so closed source packages are not in these numbers.
  • The name search matches any name that contains Package.swift, so a longer name is counted too. A version specific manifest under another name is missed.

Package.swift settings questions

How many Package.swift files pin an exact version?

exact is in 15,168 public files, the most of the 12 words.

Is exact or upToNextMajor more common?

exact, with 15,168 files, is 2.4 times upToNextMajor with 6,272.

How many files depend on a branch?

branch is in 7,104 files, 3.2 times revision with 2,244.

How many files use unsafeFlags?

unsafeFlags is in 7,712 files, 1.3 times enableUpcomingFeature.

How many files set a language mode?

swiftLanguageModes is in 9,104 public Package.swift files.

How many files add a binary target?

binaryTarget is in 8,608 files, 94.6 for every 100 with swiftLanguageModes.

How common is defaultIsolation?

It is in 996 files, 2.3 times buildToolPlugin with 428.

Is the from form counted?

No. The word is too common to search alone, so that pin is missing.

Does a count mean a package pins that way?

No. exact, branch and revision are plain words, so a file that uses one outside a pin counts too.

Does this count packages?

No. It counts files, and a copied manifest counts each time.

Does the file hold any code?

No. It holds a count and the search for each word.

May a site quote these figures?

Yes. Cite a count by linking to this page and naming 1 November 2026, the day the files were counted.

Collect feature requests in an iOS app

Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.