xtool.git
Publicgit clone https://git.maproj.org/xtool.gitxtool.git / AGENTS.md
| 1 | # About |
| 2 | |
| 3 | xtool is a cross-platform replacement for Xcode (including build system, provisioning, deployment). |
| 4 | |
| 5 | The `xtool` CLI supports macOS, Linux, WSL. The lower-level XKit (provisioning and device interaction) library additionally supports iOS. |
| 6 | |
| 7 | ## Development |
| 8 | |
| 9 | - The majority of the code is in the Swift Package. You can use `swift build` / `swift test` / etc for iteration. |
| 10 | - Caveat: on macOS, xtool is distributed as an app bundle (allows entitlements like Keychain). To build the Mac app, use `make mac`. You can then invoke the CLI at `./macOS/Build/xtool`. |
| 11 | - Make sure to run `make lint` (swiftlint) when you're done |
| 12 | |
| 13 | ## Conventions |
| 14 | |
| 15 | - Use modern Swift 6. Strict concurrency is enabled. |
| 16 | - Use swift-dependencies for Dependency Injection. Passing dependencies around as arguments is an anti-pattern. |