Repository navigation
v3.0.0
What's Changed
It has been 4 years since the last proper Swift Bundler release, and a lot has changed since then!
New CLI name: sbun
The Swift Bundler CLI's canonical name is now sbun. The prebuilt installers mentioned below all install an sbun alias. The existing swift-bundler spelling is still supported, but we encourage people to transition away from it.
This makes using Swift Bundler significantly more ergonomic.
Expanded platform support
Swift Bundler 3.0.0 brings support for iOS, Windows, Linux, and Android! Along with SwiftCrossUI, this makes it possible to build and ship apps to every major platform!
Easier installation
Each Swift Bundler release now comes with a set of prebuilt distributions and installers for macOS, Linux, and Windows. This significantly improves the installation experience, because Swift Bundler can take a while to build from source.
These prebuilts also make it possible to install Swift Bundler with a single command in any environment.
macOS / Linux
curl -fsSL https://sbun.dev/install.sh | shWindows
powershell -c "irm sbun.dev/install.ps1|iex"Hot reloading
3.0.0 brings a new hot reloading system with support for macOS and Linux. This system requires a UI framework with support for Swift Bundler's hot reloading protocol. SwiftCrossUI comes with support for that out of the box! See SwiftCrossUI's hot reloading docs to get started.
Powerful configuration system
Swift Bundler's configuration system is more powerful than it has ever been thanks to conditional overlays which enable platform-specific configuration and incremental adoption of features from new Swift Bundler versions without dropping support for older Swift Bundler versions (particularly important for libraries).
And much much more
- Unified iOS/Android device management commands:
sbun device ls,sbun run --device <device-name>, etc - Unified iOS/Android simulator/emulator management commands:
sbun simulator ls,sbun simulator boot <simulator-name-or-id>,sbun run --simulator <simulator-name-or-id>, etc - Deep platform specific customisation: configure Windows application manifests, Windows WiX installer elements, Android SDK settings, etc
- Java/Kotlin source code support when targeting Android: just configure an
android.java_directoryor anandroid.kotlin_directoryfor your Java/Kotlin-containing target, and Swift Bundler handles the rest - etc
What's next?
The next few improvements that we're working on are:
- Support for shipping to the App Store and the Google Play Store
- Improved hot reloading incremental build speeds
- An improved templating system (which is already in the works)
Merged PRs
Note that this list of PRs doesn't even include all of the improvements that we've made. I only started PRing my own changes consistently about a year ago, so a lot of changes just went straight to the main branch.
See 100+ merged PRs
- Get the cli building on Linux (but not necessarily working) by @stackotter in #29
- Fix manifest parsing on Linux by @kabiroberai in #30
- Add support for visionOS. by @furby-tm in #31
- Update bundler for swift-argument-parser
v1.2.4by @furby-tm in #33 - Set TOMLKit package dependency to v0.5.5. by @furby-tm in #35
- Create a swift bundler command line plugin. by @furby-tm in #36
- Add support for string catalogs by @JoshBashed in #43
- Fix Plurals in XCStrings by @JoshBashed in #44
- Add entitlements file support for macOS builds by @alessiodionisi in #45
- Support swift 5.9+ syntax. by @furby-tm in #51
- Support other platform sdks from generated xcode project. by @furby-tm in #52
- Add doc regarding how to add dict fields to config. by @furby-tm in #53
- Fix issue with building on Linux by @0xZaph in #59
- Fix support for for building, bundling, and running for visionOS, iOS, & tvOS. by @furby-tm in #57
- Fix loading package manifest by @ctreffs in #63
- Support wildcard provisioning profiles by @ctreffs in #64
- Fix Linux
Processdeadlocks by @gregcotten in #67 - Add Windows CI & CI badges by @ctreffs in #65
- Introduce SwiftBundler library target by @ctreffs in #66
- Switch from PureSwift/Socket fork to FlyingSocks (better maintained) by @stackotter in #70
- General Linux / RPM improvements by @gregcotten in #72
- Update Darwin dylib copying logic to support frameworks by @stackotter in #83
- Ensure provisioningprofile matches signing cert (not just identity name) by @stackotter in #84
- Fix library install name updating logic (fixes issue #85) by @stackotter in #86
- Transition to typed throws by @stackotter in #87
- Support Mac Catalyst by @stackotter in #95
- Improve config code maintainability and config error messages by @stackotter in #88
- Document configuration file format by @stackotter in #97
- Fix update-docs workflow by @stackotter in #100
- Fix update-docs' Update step (broke in #100) by @stackotter in #101
- Fix another update-docs issue (introduced by #100) by @stackotter in #102
- Add iPad support by @bbrk24 in #103
- [FIX] undefined: main linker issue on windows 11 with swift 6.2 by @MiaKoring in #110
- Fix Assets.car creation by @JoshBashed in #116
- Filter out warnings when parsing package manifests (fixes #120) by @stackotter in #123
- Always fallback to adhoc signing even on macOS (fixes macOS 26 support) by @stackotter in #125
- Fix initial hot reloading incremental build (fixes #130) by @stackotter in #131
- Fix HotReloadingClient sendability warning by @stackotter in #132
- Update stackotter links to moreSwift links (post-transfer) by @stackotter in #133
- Add sending annotation to help fix SCUI hot reloading macro concurrency error by @stackotter in #134
- Add ghall89/AutoDock to readme projects section by @ghall89 in #135
- CI: Give update-docs workflow write perms (post-transfer fixup) by @stackotter in #137
- Fix injected metadata function to not segfault by @mba6comma1 in #129
- Fix certificate locating logic (fixes #124) by @stackotter in #138
- Add
.icon(icon composer) icon support by @JoshBashed in #119 - Update Discord link to moreSwift server and encourage people to join more by @stackotter in #140
- Fix xcodebuild destination architecture handling (fixes #126) by @stackotter in #142
- Add Arcmark to README.md by @TheConnorJohnson in #145
- Fix Process.getOutputData race conditions on Linux (fixes #148) by @stackotter in #149
- Move app bundler outputs to separate subdirectories + introduce
--show-bin-pathby @stackotter in #151 - Fix RunCommand after introducing '--show-bundle-path' (fixes #154) by @stackotter in #155
- Refactor project builder configuration format by @stackotter in #156
- Fix visionOS minimum supported version (fixes #109) by @stackotter in #157
- Fix platform(...Simulator) condition parsing by @stackotter in #161
- Ignore stderr when retrieving products dir (fixes 159) by @stackotter in #162
- Fix compilation of apps that use backported Span by @stackotter in #169
- Windows: Implement app icon support by @stackotter in #168
- Various MSI bundling improvements by @stackotter in #170
- Windows(ico): Switch from Lanczos resampling to linear (impl was buggy) by @stackotter in #172
- Add --toolchain CLI option by @stackotter in #171
- Improve release build times by removing runtime swift-syntax dependency by @stackotter in #173
- MSI: Allow users to specify custom WXS file entries by @stackotter in #174
- Support TOML 1.1.0 syntax in Bundler.toml files by @stackotter in #175
- Windows code signing support by @stackotter in #179
- Support projects in library packages, and support pre-built artifacts by @stackotter in #165
- Add Android support by @stackotter in #136
- Display sensible error message when package has no apps by @stackotter in #180
- Update to swift-argument-parser version with fix for --help (explicitly) by @stackotter in #181
- Introduce a basic error hints system by @stackotter in #182
- Move 'migrate' subcommand under 'config' subcommand by @stackotter in #183
- Fix codeview debug format flag (thanks compnerd) by @stackotter in #184
- PackageGraph: Fix algorithm used to detect SwiftPM target usage by @stackotter in #185
- Fix Process.locate on Windows by @stackotter in #186
- Run the formatter (for the first time in a while) by @stackotter in #189
- Android: Allow devs to configure required permissions by @stackotter in #191
- Support Windows application manifest customization by @stackotter in #192
- CI: Only push-trigger workflows for main branch (to save runners) by @stackotter in #194
- Show output of swift package resolve (we were suppressing it) by @stackotter in #195
- RPMBundler: Work around rpmbuild's mishandling of paths with spaces by @stackotter in #197
- Bump swift-crypto and ErrorKit version requirements by @stackotter in #198
- Windows: Fix bundling of debug builds; copy debug DLLs by @stackotter in #204
- Support hot reloading on Linux by @stackotter in #193
- Improve dev experience of working with dependencies by @stackotter in #206
- Add cause to 'failed to count revisions' error message by @stackotter in #207
- Support --strip on Windows and Android by @stackotter in #208
- Various MSI bundling improvements by @stackotter in #209
- Document all available bundlers with examples by @stackotter in #211
- Update sponsorship information to point to the moreSwift Open Collective by @stackotter in #212
- Remove stackotter from FUNDING.yml (GitHub displays it too prominently) by @stackotter in #213
- Fix typo in MSI bundler documentation by @stackotter in #214
- Fix config versioning, recursively merge overlays, prepare for 3.0.0 by @stackotter in #215
- Initial AAPT resource support by @bbrk24 in #205
- Implement required_config_version field for conditional overlays by @stackotter in #218
- Windows: Avoid re-signing presigned artifacts by @stackotter in #225
- Include url_schemes in embedded app metadata by @stackotter in #227
- PackageGraph: Support traits and trait-based conditionals by @stackotter in #226
- Windows: Sign unsigned DLLs when codesigning is enabled by @stackotter in #228
- Fix occasional Windows package graph loading failure by @stackotter in #230
- Limit swift-system version to fix builds for Linux kernels <5.11 by @stackotter in #231
- Update ZIPFoundationModern dependency to get Swift 6.4 fix by @stackotter in #233
- Docs: Add project migration article by @stackotter in #234
- Fix ArgumentParser validation error messages by @GtechGovind in #236
- Add support for Xcode 27 Device Hub (with
xcode-select) by @nhedger in #239 - Fix Xcode 27 destination list parsing by @nhedger in #240
- Introduce Android entry point customisation by @stackotter in #241
- Auto-update templates on project creation by @stackotter in #244
- Add copy of LLM policy from SwiftCrossUI by @MiaKoring in #245
- CI: Investigate Windows build failures (maybe due to embedded resources) by @stackotter in #246
- Android: Allow apps & libraries to provide custom main activities by @stackotter in #243
- Correct typo of 'Generic Window Bundler' to 'Generic Windows Bundler' by @itjustcrashed in #248
- Update swift-image-formats dependency to v0.6.0 (new JPEG lib) by @stackotter in #249
- Produce pre-built Swift Bundler installers for each platform by @stackotter in #250
- Fix convert command's handling of file system synced groups by @stackotter in #251
- CI: Create a 'distribution' workflow for generating installers for releases by @stackotter in #253
- CI: Reject AI co-authors by @stackotter in #252
- CI: Stop making universal release builds in macOS workflow (too slow) by @stackotter in #257
- Fix compilation under Swift 6.4 (fixes #254) by @stackotter in #256
- Make swift-bundler truly standalone by bumping to ErrorKit 2.1.2 by @stackotter in #258
- CI: Update update-docs to use upload-pages-artifact by @stackotter in #259
- CI: Update update-docs workflow to deploy docs on push to main by @stackotter in #260
- Docs: Fix / and /documentation redirects by @stackotter in #261
- Distribution improvements by @stackotter in #262
- Enforce @introduced when decoding overlay properties by @stackotter in #263
- Dist: Fix Static Linux SDK discovery for machines with XDG config dir configured by @stackotter in #264
- Actually write the original config to the migration backup file by @stackotter in #265
- Make 'config migrate' succeed when the config is already up to date by @stackotter in #266
- Merge plist and metadata dictionaries when applying overlays by @stackotter in #267
- Default missing v2 bundle identifiers to com.example. by @stackotter in #268
- Support --config-file in 'config migrate' by @stackotter in #269
- Fix iOS rpaths, signing and xcodebuild coverage. by @furbytm in #255
- Rename list-identities command to 'identities list' by @stackotter in #270
- CLI: Rename plural->singular, list->ls, and remove default subcmds by @stackotter in #271
- Fix JSONUtilities package resolution issue by @stackotter in #273
- CLI: Dynamically determine command name for help/example commands by @stackotter in #272
- Fix up docs for new install method, and error messages for new cmd spellings by @stackotter in #274
- Fix profile provisioning and prefer development certs by @stackotter in #275
- Android: Default to SwiftPM's native build system to avoid swift-build issues by @stackotter in #277
- Hot reloading: Use SPM's native build system to avoid swiftbuild issues by @stackotter in #278
- CLI: Tag options/arguments that accept files, to improve completions by @stackotter in #279
New Contributors
- @kabiroberai made their first contribution in #30
- @furby-tm made their first contribution in #31
- @JoshBashed made their first contribution in #43
- @alessiodionisi made their first contribution in #45
- @0xZaph made their first contribution in #59
- @ctreffs made their first contribution in #63
- @gregcotten made their first contribution in #67
- @bbrk24 made their first contribution in #103
- @MiaKoring made their first contribution in #110
- @ghall89 made their first contribution in #135
- @mba6comma1 made their first contribution in #129
- @TheConnorJohnson made their first contribution in #145
- @GtechGovind made their first contribution in #236
- @nhedger made their first contribution in #239
- @itjustcrashed made their first contribution in #248
- @furbytm made their first contribution in #255
Full Changelog: v2.0.7...v3.0.0