Repository navigation
Releases
v2.0.0-beta.2
Important
This is a beta. There are no stability guarantees until a non-prerelease 2.0.0 is tagged.
This release adds support for Metal compilation and fixes a handful of bugs.
What's Changed
- swb: fix LC_BUILD_VERSION with swift linker-driver by @kabiroberai in #452
- swb: point SWIFT_LIBRARY_PATH at the SDK's Swift libraries by @ap-1 in #465
- toolchain: accept toolchains installed without usr/ by @ap-1 in #459
- gsa: fix login for accounts without 2FA by @nab138 in #455
- swb: support Metal compiler on macOS by @kabiroberai in #468
- metal: support Linux via Wine by @kabiroberai in #471
- package: don't mark versioned builds as dirty by @kabiroberai in #470
- swb: fix codeless and static framework handling by @kabiroberai in #474
New Contributors
Full Changelog: 2.0.0-beta.1...2.0.0-beta.2
v2.0.0-beta.1
Important
This is a beta. There are no stability guarantees until a non-prerelease 2.0.0 is tagged.
v2.0.0 is a massive overhaul of xtool. Highlights:
Xcode project support
xtool can now build Xcode projects (xcodeproj, xcworkspace). This should be 1:1 with Xcode on macOS. On Linux/WSL we don't yet support some tools (asset catalogs, app intents, storyboards) but many of these will come in future releases.
Hot reloading
On macOS, you can run xtool dev -w to launch your app in the simulator in hot-reload mode. When you save changes, it'll automatically update the running app using the same underlying approach as Injection.
Unlike Injection, if you're using SwiftUI, this requires no changes to your code. Views will automatically refresh as you edit them!
Massive performance gains
xtool can build Xcode projects 2-3x faster than xcodebuild in many cases. Further improvements are in the works (pending stabilization), which will make warm builds up to 15x faster than xcodebuild.
Overhauled build system
The secret sauce behind all of this: xtool now directly speaks to SwiftBuild, rather than going through SwiftPM (caveat: we still rely on SwiftPM for package resolution but hopefully not for long). The packaging logic now shares its roots with Xcode, so there should be far fewer discrepancies, resolving many open issues.
Build Mac apps and more
You can now build macOS apps with xtool dev build --triple arm64-apple-macosx!
This is thanks to the aforementioned build system overhaul. No support for signing Mac apps yet, or for building watchOS/tvOS/other platforms. But those are far easier to add now.
v1.24.0
This release fixes another source of HTTP 503 errors when authenticating with an Apple ID.
What's Changed
- entitlements: support Sign in with Apple by @victoragudo in #377
- sdk: accept directories for tarball overrides by @ap-1 in #385
- deps: force OpenCombine in the DemoTCA lockfile by @ap-1 in #391
- pack: link edited dependencies into the builder package by @ap-1 in #390
- gsa: update user agent by @kabiroberai in #406
New Contributors
- @victoragudo made their first contribution in #377
- @ap-1 made their first contribution in #385
Full Changelog: 1.23.0...1.24.0
v1.23.0
Breaking changes
If you use Apple ID authentication (as opposed to an App Store Connect API key), you'll need to log in again after updating (#380).
What's Changed
- fix: strip trailing carriage return in console prompt on crlf terminals by @bitxwolf in #328
- certs: match certificates whose serial starts with 0 by @chintan100 in #306
- sdk: enable cross-import overlays with SwiftBuild by @SrgGrch in #361
- gsa: fall back to a trusted-device code when SMS 2FA fails by @javiertrejoyam in #349
- sdk: update OpenAppleMacros to v1.4.1 by @kabiroberai in #371
- sdk: support env overrides for tarballs by @kabiroberai in #372
- gsa: use macOS Omnisette by @kabiroberai in #380
New Contributors
- @bitxwolf made their first contribution in #328
- @chintan100 made their first contribution in #306
- @SrgGrch made their first contribution in #361
- @javiertrejoyam made their first contribution in #349
Full Changelog: 1.22.2...1.23.0
v1.22.2
Breaking Changes
This release updates the device fingerprint used for Apple ID-based login (we now present to Apple as a Pixel 7 device), fixing auth issues.
If you use Apple ID auth, you'll need to log in again after updating.
What's Changed
- planner: skip macro targets by @pawlowskialex in #208
- packer: use XcodeProjectFormat for generate-xcode-project by @kabiroberai in #300
- packer: custom SwiftVersion parser by @kabiroberai in #303
- gsa: fix login using mismatched client-info by @kabiroberai in #337
- http: add newer Apple Root CAs by @kabiroberai in #340
New Contributors
- @pawlowskialex made their first contribution in #208
Full Changelog: 1.21.0...1.22.2
v1.21.0
Breaking Changes
Darwin hosts: the deployment target for xtool is now macOS 14.0 / iOS 17.0. This shouldn't matter to CLI users because Swift 6-compatible toolchains require macOS 14.5+ anyway, but may be relevant to consumers of the XKit/XToolSupport libraries.
What's Changed
- sdk: get clang resources from swift toolchain by @kabiroberai in #274 (fixes #273)
- deps: bump deps by @kabiroberai in #271, #278, #281, #298
- build: compile xtool with Swift 6.4 by @kabiroberai in #272
- package: bump Darwin deployment targets to Fall2023 by @kabiroberai in #277
- sdk: prune Xcode when installing from xip by @kabiroberai in #280
- tests: derive CFBundleSupportedPlatforms from the build triple by @mvanhorn in #289
- build: link xtool dynamically inside AppImage by @kabiroberai in #296
New Contributors
Full Changelog: 1.20.1...1.21.0
v1.20.1
What's Changed
- Adds support for FoundationModels macros (#270)
- Fixes
ld64.llderroring out with "unknown architecture: arm64e.x1-ios" when linking apps built using Xcode 27 (#270) - Fixes failure to find
dsymutilwhen building for release on Swift 6.4 (#270)
Full Changelog: 1.20.0...1.20.1
v1.20.0
This release adds support for Swift 6.4 (#229) and SwiftUI macros (#101).
Behavior is a lot closer to Xcode thanks to SwiftBuild, which should resolve many previous incompatibilities (such as issues with xcframeworks). There will probably be some growing pains, so please file any issues that you encounter.
Breaking changes
Linux
You'll need to re-install the Darwin SDK after updating. We recommend you take this opportunity to update to Xcode 27 + Swift 6.4.
Reinstallation is needed because we have a new Darwin SDK layout. It allows xtool to automatically rebuild the SDK any time we change the layout / add new components in the future (#110). For example, if a future update of xtool added watchOS support (or, more imminently, added more macros), the new layout means you wouldn't need to re-install the SDK again.
One tradeoff: the new format bundles the entirety of Xcode.app/Contents/Developer, which increases size on disk from ~3 GB to ~7 GB. You may opt out with xtool sdk install --slim (this may be useful in ephemeral environments like CI).
macOS
The authentication backend (Anisette provider) has changed from Omnisette to XADI. If you use Apple ID auth (i.e. not an App Store Connect API key), you'll need to log in again after updating. (#259)
General
IDE support now relies on a BSP (Build Server Protocol) server. On Swift 6.4, we directly tap into SwiftBuild rather than using SwiftPM's --swift-sdk. This means we can't "simply" use a .sourcekit-lsp/config.json for IDE support. Instead, we now create a .bsp/xtool.json file that points SourceKit to our custom Build Server. xtool will automatically create this file for you when using Swift 6.4. If needed, you can disable it by setting skipLSP: true in xtool.yml.
New Contributors
- @genkernel made their first contribution in #261
Full Changelog: 1.19.2...1.20.0
v1.19.2
What's Changed
- gsa: more fixes to resolve HTTP 503 errors on auth (#246, #247, #257)
- sdk: fix permission issue (#254) when copying clang resources (#255)
New Contributors
- @Robetronica made their first contribution in #246
Full Changelog: 1.19.0...1.19.2
v1.19.0
Fixes #243 ("Data was corrupted" error on login)
What's Changed
- gsa: update user agent to fix auth • @kabiroberai in #244
Full Changelog: 1.18.1...1.19.0