Modern Apps git

xtool.git

Public
git clone https://git.maproj.org/xtool.git
main ▾

xtool.git / AGENTS.md

AGENTS.md1.3 KiBRenderedCodeRaw
1# About
2
3xtool is a cross-platform replacement for Xcode (including build system, provisioning, deployment).
4
5The `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 (`@Dependency(\.foo)` / `d.foo`) for Dependency Injection. Passing dependencies around as arguments is an anti-pattern.
17- Commits should be in the format `subsystem: imperative description` e.g. `auth: support reading password from stdin`.
18- Don't use `Task.detached { ... }`. If you need to escape isolation, you want `Task { @concurrent in ... }` instead.
19- Uphold API stability guarantees for consumers who use xtool via the command line interface (e.g. don't remove subcommands or config fields). However, the Swift interface (including `public` types) when consuming xtool itself as a Swift Package is _NOT_ API stable; it's okay to break Swift API.