Build and deploy iOS apps from Linux or Windows terminals
Imagine writing code in a Linux or Windows terminal and installing the app on a physical iPhone to run it. xtool recreates core Xcode functionality using standard-based tools, enabling iOS development without being tied to a specific operating system. It is a tool that handles the process of building, signing, and deploying SwiftPM packages as iOS apps via command line.
New changes in the 2.0 beta
xtool 2.0 is currently available as a beta version. This update adds hot reloading support, Xcode project build capabilities, and macOS app compilation features. Developers can now manage projects more flexibly and create apps on various platforms. Since this is a stage that welcomes feedback, it is recommended to test the new features directly and share your opinions.
Command-line driven development flow
xtool handles the entire development process via commands, from configuration, authentication, and SDK management to project creation, building, running, and device management. You can create a new project with xtool new and perform build and run operations in one step with xtool dev. Additionally, you can install ipa files to a device and start the app using the xtool install and xtool launch commands. This workflow allows users unfamiliar with the existing Xcode interface to complete development using only the terminal.
Usage as a library
xtool is not limited to use as a CLI tool; it can also be added directly as a dependency via Swift Package. Including XKit or XToolSupport in your package enables your app to interact directly with Apple Developer Services or iOS devices. However, note that while the CLI interface follows semantic versioning (semver), the Swift interface does not provide the same stability guarantees.
Pre-adoption considerations
This tool is designed to run in Linux, WSL, and macOS environments. Windows users must access it through WSL, while macOS users should follow a separate installation guide. Since version 2.0 is in the beta stage, it is safer to verify it in development and testing environments before applying it directly to production. Also, because the version stability of the Swift interface differs from the CLI, you must always check compatibility when updating if using it as a library.