Repository navigation
v2.0.0-beta.1
Pre-releaseImportant
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.