Which platforms Swift packages build on
1,367 of 1,500 sampled Swift packages checked on 1 November 2026. 86.2 percent build on iOS.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
Every platform
86.2 percent of Swift packages build on iOS, and 40.2 percent on Linux.
iOS is the most common of the eight platforms, 4.0 times Wasm, which is the least common, with 291.
| Platform | Packages | Percent |
|---|---|---|
| iOS | 1,178 | 86.2 |
| macOS | 1,125 | 82.3 |
| visionOS | 945 | 69.1 |
| tvOS | 907 | 66.3 |
| watchOS | 765 | 56.0 |
| Linux | 550 | 40.2 |
| Android | 423 | 30.9 |
| Wasm | 291 | 21.3 |
Linux
That is 628 packages fewer than build on iOS, and 127 more than build on Android.
550 of 1,367 packages build on Linux, 40.2 percent.
Half of the packages created in 2019 build on Linux, 50.0 percent, and 32.5 percent of those created in 2025.
Linux went from 50.0 percent for 2019 packages to 32.5 for 2025 and 44.2 for 2026, so the trend is not clear.
Each year holds 88 to 197 packages, so one year is within 7 to 10 points, 19 times in 20.
Android
423 of 1,367 packages build on Android, 30.9 percent, which is 76.9 for every 100 that build on Linux.
Android builds went from 23.9 percent in 2025 to 36.0 in 2026.
The 2026 share is 12.1 points above 2025, the largest one year move in the year table.
| Year | iOS | Linux | Android | 6.4 |
|---|---|---|---|---|
| 2018 | 80.2 | 49.1 | 35.8 | 96.2 |
| 2019 | 88.6 | 50.0 | 38.6 | 97.7 |
| 2020 | 88.0 | 43.6 | 29.9 | 99.1 |
| 2021 | 86.3 | 36.3 | 30.4 | 94.1 |
| 2022 | 92.5 | 38.7 | 28.3 | 100.0 |
| 2023 | 85.3 | 33.1 | 29.4 | 97.1 |
| 2024 | 89.5 | 33.3 | 27.8 | 99.4 |
| 2025 | 83.4 | 32.5 | 23.9 | 96.3 |
| 2026 | 85.8 | 44.2 | 36.0 | 98.5 |
Apple only
816 packages build on Apple platforms only and 545 on Apple platforms and Linux, 39.9 percent.
59.7 percent of packages build on Apple platforms and nothing else.
Only 5 packages build on Linux and no Apple platform, and 1 on Android or Wasm alone.
| Where a package builds | Packages |
|---|---|
| Apple platforms only | 816 |
| Apple platforms and Linux | 545 |
| Linux only | 5 |
| Android or Wasm only | 1 |
How many platforms
241 packages, 17.6 percent, build on all eight platforms, the second most common count.
292 packages build on five platforms, the most common count.
207 packages, 15.1 percent, build on one platform.
| Platforms built on | Packages |
|---|---|
| 1 | 207 |
| 2 | 145 |
| 3 | 167 |
| 4 | 110 |
| 5 | 292 |
| 6 | 77 |
| 7 | 128 |
| 8 | 241 |
Swift versions
96.9 percent of packages build on Swift 6.4, and 86.2 on Swift 6.1.
Swift 6.4 has 147 more packages than Swift 6.1, 10.8 percent of the 1,367.
| Swift version | Packages | Percent |
|---|---|---|
| 6.4 | 1,325 | 96.9 |
| 6.3 | 1,325 | 96.9 |
| 6.2 | 1,282 | 93.8 |
| 6.1 | 1,178 | 86.2 |
iOS by year
80.2 percent of packages created in 2018 build on iOS and 92.5 percent of those created in 2022.
The iOS share runs from 80.2 to 92.5 percent across nine years.
The 2026 share is 85.8 percent, close to the overall 86.2.
The nine years run from 2018 to 2026 and hold 1,177 of the 1,367 packages. The other 190 are not in the year tables.
No year is more than 6.3 points from the overall share of 86.2 percent.
The sample
1,500 packages were read, 23 were left out as generated by one organization, and 110 of the other 1,477 have no result, 7.4 percent.
1,367 of 1,500 sampled packages have a build result.
The 1,367 with a result are 92.6 percent of the 1,477 kept.
The 1,500 were drawn from a list of 12,422, of which 11,262 are neither archived nor forks. Each share is within about 2.7 points, 19 times in 20.
The 110 without a result are left out of every share, because the index does not say whether they failed or were never built.
What is in the file
A share for each platform
Eight platforms, from iOS and macOS to Linux, Android and Wasm.
Four Swift versions
Swift 6.1 to 6.4, with the packages that build on each.
Nine years of packages
The share on iOS, Linux, Android and Swift 6.4 for each year created.
No code and no names
The file holds counts only, with no package name and no developer.
How the packages were read
A random sample and a build badge for each.
Draw 1,500 packages
The sample came from the 11,262 packages that are neither archived nor forks, with a fixed seed.
Leave out generated ones
Packages generated in bulk by one organization were dropped, 23 of the 1,500.
Read the build badge
The public badge page of each package lists the platforms and Swift versions it builds on.
Keep the counts
Each CSV row holds a group, an item, a count, a base and a percent. No package names are kept.
Which platforms a board package should build for
iOS is the platform to cover first, with 86.2 percent of the 1,367 packages that have a build result building on it, then macOS at 82.3, visionOS at 69.1 and tvOS at 66.3. A board package that builds on iOS and macOS matches the two most common targets.
Beyond Apple, Linux is built by 40.2 percent of packages, Android by 30.9 and Wasm by 21.3. A board package that builds on Linux as well lets a server or a test job use it, which only about two packages in five allow.
What these numbers leave out
- A build result shows a successful build, and not that a package is tested or works on that platform.
- The 110 sampled packages with no result are left out of every share.
- The sample is 1,500 of 11,262 packages, so each share is within about 2.7 points, 19 times in 20.
- A year holds 88 to 197 packages, so one year is within 7 to 10 points, 19 times in 20.
- The year is when the repository was created, not when the package joined the index.
- No package code and no manifest was read.
Swift package platform questions
How many Swift packages build on Linux?
550 of 1,367 sampled, 40.2 percent.
How many Swift packages build on Android?
423 of 1,367 sampled, 30.9 percent.
How many Swift packages build on iOS?
1,178 of 1,367 sampled, 86.2 percent.
Do most packages build on Apple platforms only?
Yes. 816 packages, 59.7 percent, build on Apple platforms and not on Linux.
How many platforms does a package build on?
Most often five, 292 packages, then all eight, 241 packages.
Which Swift versions do packages build on?
96.9 percent build on Swift 6.4 and 86.2 percent on Swift 6.1.
Is Android support growing?
It rose from 23.9 percent for 2025 packages to 36.0 percent for 2026 ones.
Is Linux support growing?
Not clearly. It was 50.0 percent for 2019 packages, 32.5 for 2025 and 44.2 for 2026.
How many packages build on every platform?
241 build on all eight, 17.6 percent, and 684 on all five Apple platforms.
Does a build result mean the package works?
No. It shows that the index recorded a successful build, not that the package is tested.
Does the file name any package?
No. It holds counts, bases and percents only.
May a site quote these figures?
Yes. A figure may be quoted when the page links back here and gives 1 November 2026 as the read date.
More Swift code, counted
More counts for Swift and iOS developers.
MIT, Apache-2.0 or no license: Swift packages counted
The license of 11,025 Swift packages, by year.
Swift packages in 2026: stars, pushes and setup
12,422 packages, one row each.
Apple platform checks counted in public Swift files
23 platform, visionOS, watchOS, CarPlay and health words.
Swift Package.swift settings counted: exact and unsafeFlags
12 version rule and setting words counted.
Mac menu bar, login item and system access code counted
14 menu bar, login item and system words counted.
Languages in iOS String Catalogs, counted on GitHub
38 languages, with English in 68.4 of every 100.
GitHub topics of Swift packages, by year created
The topics of 11,025 Swift packages, by year.
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.