Skip to content

Wasm and Android compatibility blog post #3810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
We’re delighted to announce support for compatibility testing of packages on two new Swift platforms, Android and [Wasm](https://webassembly.org/). This brings the number of platforms we test every package with to 8!

<picture class="shadow">
<source srcset="/images/blog/wasm-and-android-compatibility-matrix~dark.png" media="(prefers-color-scheme: dark)">
<img src="/images/blog/wasm-and-android-compatibility-matrix~light.png" alt="The Swift Package Index compatibility matrix showing columns for the Android and Wasm platforms.">
</picture>

Swift support for Wasm has been in development for [a long time](https://desiatov.com/swift-webassembly-2020/), and [as of Swift 6.1](https://blog.swiftwasm.org/posts/6-1-released/), it now requires no custom patches:

> This is the first stable release we’ve built directly from the official swiftlang/swift source without any custom patches. This means all components (compiler, stdlib, Foundation, XCTest, swift-testing, etc.) have been fully upstreamed.

Swift on Android is also receiving plenty of community effort, including a recent announcement of a [community working group](https://forums.swift.org/t/swift-on-android-working-group/77780). The [swift-everywhere.org](http://swift-everywhere.org) site has also been [tracking Android compatibility](https://skip.tools/blog/android-native-swift-packages/) for several months.

Plenty of work went into making Swift work on these platforms, and it seemed like a great time to add them to our compatibility testing. So we did! For the past week, the Swift Package Index build system has processed 35,000 builds to test compatibility. As of today, all builds are complete, and you can see Wasm and Android compatibility on every package page.

### Results

Of ~9,000 indexed packages, **18.9% build for Wasm** and **27.9% build for Android**. We find that remarkable, given that reliance on Apple-specific frameworks automatically makes many packages incompatible.

It’s safe to say that Swift is expanding beyond its Apple-focused roots. Windows and Linux have been officially supported for years, and Wasm and Android are starting to make their way down that path. It’s great to see.
5 changes: 5 additions & 0 deletions Resources/Blog/posts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,8 @@
summary: We've added support for custom package collections to allow well-known community efforts to present package collections.
published_at: 2024-12-09
published: true
- slug: adding-wasm-and-android-compatibility-testing
title: Adding Wasm and Android compatibility testing
summary: You can now check the compatibility of every package in the Swift Package Index with Wasm and Android.
published_at: 2025-06-02
published: true
Loading