xtool README

The project's README from github.com/xtool-org/xtool. As one markdown file: README.md.

xtool

Cross-platform Xcode replacement. Build and deploy iOS apps with SwiftPM on Linux, Windows, and macOS.

Overview

xtool is a cross-platform (Linux/WSL/macOS) tool that replicates Xcode functionality with open standards.

✅ Build a SwiftPM package into an iOS app

✅ Sign and install iOS apps

✅ Interact with Apple Developer Services programmatically

Getting Started

  1. Follow the guide to install xtool
  2. Create and run your first xtool-powered app by following the tutorial!

Examples

Screenshot

A screenshot of xtool being invoked from VSCode

Command line interface

$ xtool --help
OVERVIEW: Cross-platform Xcode replacement

USAGE: xtool <subcommand>

OPTIONS:
  -h, --help              Show help information.

CONFIGURATION SUBCOMMANDS:
  setup                   Set up xtool for iOS development
  auth                    Manage Apple Developer Services authentication
  sdk                     Manage the Darwin Swift SDK

DEVELOPMENT SUBCOMMANDS:
  new                     Create a new xtool SwiftPM project
  dev                     Build and run an xtool SwiftPM project
  ds                      Interact with Apple Developer Services

DEVICE SUBCOMMANDS:
  devices                 List devices
  install                 Install an ipa file to your device
  uninstall               Uninstall an installed app
  launch                  Launch an installed app

  See 'xtool help <subcommand>' for detailed help.

Library

xtool includes a library that you can use to interact with Apple Developer Services, iOS devices, and more from your own app. You can use this by adding XKit as a SwiftPM dependency.

// package dependency:
.package(url: "https://github.com/xtool-org/xtool", .upToNextMinor(from: "1.2.0"))
// target dependency:
.product(name: "XKit", package: "xtool")

xtool (xtool-org/xtool)

Searching Database…

11.9K ·GitHub
这是什么?xtool 是一款跨平台工具,可复刻 Xcode 的核心功能,让你在 Linux、Windows(通过 WSL)或 macOS 上构建、签名并安装以 SwiftPM 包形式编写的 iOS 应用。
这是像 Xcode 那样的完整 IDE,还是仅仅一个命令行构建工具?它主要是一个命令行工具,用于构建、签名和安装以 SwiftPM 构建的 iOS 应用,另外还附带一个库(XKit),你可以把它嵌入自己的工具中与 Apple Developer Services 通信。
怎么安装 xtool 并上手使用?按照对应平台的安装指南操作(Linux/Windows 一条路径,macOS 另一条路径),然后跟随教程创建并运行你的第一个基于 xtool 的应用。
它只能在 macOS 上用,还是也支持 Linux 和 Windows?它可以在 Linux、通过 WSL 的 Windows 以及 macOS 上运行,三者都是一等公民的安装目标。
xtool 究竟能对我的 SwiftPM 包做什么?它可以把 SwiftPM 包构建成 iOS 应用,然后对应用进行签名和安装,涵盖了 Xcode 通常负责的核心构建与部署工作流。
XKit 是什么?XKit 是 xtool 背后的库,让你能在自己的应用中以编程方式与 Apple Developer Services 和 iOS 设备交互,以 SwiftPM 依赖的形式添加。
为什么要用 xtool,而不是直接用装了 Xcode 的 Mac?xtool 让 Linux 或 Windows 上的开发者无需拥有 Mac 就能构建并发布真正的 iOS 应用,使用开放标准而不是 Xcode 的专有工具链。
Creator
xtool-org
Size
10.8 MB
Stars
11.9K
Age
1y
Commits · 90 Days