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.
| Word | Files |
|---|---|
| exact | 15,168 |
| swiftLanguageModes | 9,104 |
| binaryTarget | 8,608 |
| unsafeFlags | 7,712 |
| branch | 7,104 |
| upToNextMajor | 6,272 |
| enableUpcomingFeature | 5,920 |
| enableExperimentalFeature | 2,624 |
| upToNextMinor | 2,276 |
| revision | 2,244 |
| defaultIsolation | 996 |
| buildToolPlugin | 428 |
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.
| Version rule | Files |
|---|---|
| exact | 15,168 |
| branch | 7,104 |
| upToNextMajor | 6,272 |
| upToNextMinor | 2,276 |
| revision | 2,244 |
Targets and settings
swiftLanguageModes is in 9,104 files, 1.1 times binaryTarget.
| Target or setting | Files |
|---|---|
| swiftLanguageModes | 9,104 |
| binaryTarget | 8,608 |
| unsafeFlags | 7,712 |
| enableUpcomingFeature | 5,920 |
| enableExperimentalFeature | 2,624 |
| defaultIsolation | 996 |
| buildToolPlugin | 428 |
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.
| Word | Per 100 modes |
|---|---|
| binaryTarget | 94.6 |
| unsafeFlags | 84.7 |
| enableUpcomingFeature | 65.0 |
| enableExperimentalFeature | 28.8 |
| defaultIsolation | 10.9 |
| buildToolPlugin | 4.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.
| Pair | Ratio |
|---|---|
| modes / isolation | 9.1 |
| branch / revision | 3.2 |
| toMajor / toMinor | 2.8 |
| upcoming / experimental | 2.3 |
| exact / branch | 2.1 |
| exact / modes | 1.7 |
| unsafe / upcoming | 1.3 |
The rarest
buildToolPlugin is in 428 files, the fewest of the 12.
| The four least common words | Files |
|---|---|
| upToNextMinor | 2,276 |
| revision | 2,244 |
| defaultIsolation | 996 |
| buildToolPlugin | 428 |
By group
The settings spread 21 to 1, and the version rules 6.8 to 1.
| Group | Most | Fewest |
|---|---|---|
| Version rules | 15,168 | 2,244 |
| Targets, settings | 9,104 | 428 |
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.
More Swift code, counted
More counts for Swift and iOS developers.
Swift packages in 2026: stars, pushes and setup
12,422 packages, one row each.
Which platforms and Swift versions Swift packages build on
1,367 sampled packages, from iOS to Linux and Android.
MIT, Apache-2.0 or no license: Swift packages counted
The license of 11,025 Swift packages, by year.
GitHub topics of Swift packages, by year created
The topics of 11,025 Swift packages, by year.
What Swift packages with many stars have in common
12,422 packages, 18 setup checks, releases to license.
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.