How xtool-org/xtool works
xtool is a cross-platform Xcode replacement for building SwiftPM iOS apps, signing and deploying them, managing Apple Developer Services, and operating connected devices. The principal workflow runs from CLI commands through planning and packaging, then signing and installation; separate branches handle authentication and Developer Services management, SDK setup, and device control. The graph includes major README capabilities and central indexed modules. Several subsystem paths are directories because their individual implementations were not sampled; their internal wiring is therefore omitted where evidence is unavailable.
Main entry points: XToolSupport Development commands · AuthCommand.swift Auth command · DeveloperServicesClient.swift Developer Services API · Packer.swift App packer
Components 25
CLI workflows
- xtool CLI
Sources/xtool/XTool.swift - Development commands
Sources/XToolSupport - Auth command
Sources/XToolSupport/AuthCommand.swift
Build and projects
- Build planner
Sources/PackLib/Planner.swift - App packer
Sources/PackLib/Packer.swift - Build settings
Sources/PackLib/BuildSettings.swift - SDK management
Sources/XToolSupport/SDKBuilder.swift - Xcode project model
Sources/XcodeProjects/XcodeProject.swift - Workspace model
Sources/XcodeProjects/XcodeWorkspace.swift
Signing and services
- Signing context
Sources/XKit/Signer/SigningContext.swift - Automatic signing
Sources/XKit/Signer/AutoSigner.swift - Entitlements
Sources/XKit/Model/Entitlements/Entitlements.swift - Provisioning profiles
Sources/XKit/Model/Mobileprovision.swift - Auth token storage
Sources/XToolSupport/AuthToken.swift - Apple account login
Sources/XKit/DeveloperServices/DeveloperServicesLoginManager.swift - Apple account protocol
Sources/XKit/GrandSlam - Developer Services API
Sources/XKit/DeveloperServices/DeveloperServicesClient.swift - Developer Services commands
Sources/XToolSupport/DSCommands
Device operations
- Device commands
Sources/XToolSupport - App installation
Sources/XKit/Installation/IPAInstaller.swift - Device connection
Sources/XKit/Installation/ConnectionManager.swift - Profile installation
Sources/XKit/Installation/ProfileManager.swift
Other components
- Developer
- Apple services
- iOS device
Connections 27
- Developer → xtool CLI: invokes
- xtool CLI → Development commands: dispatches
- Development commands → Build planner: plans builds
- Build planner → Build settings: uses settings
Sources/PackLib/Planner.swift - Development commands → App packer: builds app
- App packer → Xcode project model: reads project
- App packer → Workspace model: reads workspace
- Developer → SDK management: manages SDK
- Development commands → Automatic signing: signs app
- Automatic signing → Signing context: uses context
- Signing context → Entitlements: reads entitlements
Sources/XKit/DeveloperServices/App IDs/DeveloperServicesAddAppOperation.swift - Signing context → Provisioning profiles: uses profiles
Sources/XKit/DeveloperServices/Profiles/DeveloperServicesFetchProfileOperation.swift - Developer → Auth command: authenticates
- Auth command → Apple account login: logs in
Sources/XToolSupport/AuthCommand.swift - Apple account login → Apple account protocol: authenticates account
Sources/XKit/DeveloperServices/DeveloperServicesLoginManager.swift - Auth command → Developer Services API: lists teams
Sources/XToolSupport/AuthCommand.swift - Auth command → Auth token storage: saves token
Sources/XToolSupport/AuthCommand.swift - Auth token storage → Developer Services API: provides credentials
Sources/XToolSupport/AuthToken.swift - Developer Services API → Apple services: sends API requests
- Developer → Developer Services commands: manages developer data
- Developer Services commands → Developer Services API: uses API
- Developer → Device commands: controls devices
- Device commands → App installation: installs app
- App installation → Device connection: uses connection
- Device connection → iOS device: connects
- Profile installation → Device connection: starts client
Sources/XKit/Installation/ProfileManager.swift - Profile installation → Provisioning profiles: installs profiles
Sources/XKit/Installation/ProfileManager.swift