xtool README

项目的 README,来自 github.com/xtool-org/xtool。合并为一个 markdown 文件:README.md。

xtool

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

[!NOTE]

xtool 2.0 is now in beta, with support for hot reloading, building Xcode projects, and compiling macOS apps! Feedback welcome. See #449 for details.

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

You can consume xtool itself as a Swift Package, to enable your own app to interact with Apple Developer Services, iOS devices, and more. You can use this by adding XKit or XToolSupport as a SwiftPM dependency.

Note: while we aim to uphold semver semantics on the CLI interface (breaking change = major version bump), the Swift interface does not offer the same guarantees.

// 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)

正在搜索数据库…

15.7K ·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 的专有工具链。
作者
xtool-org
大小
11.1 MB
星标
15.7K
时长
2年
提交 · 90 天