SD

sweetpad-dev/sweetpad

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1916 stars 质量 66 趋势 45MIT

使用 VSCode 开发 Swift/iOS 项目

概览

从终端构建、运行、调试和测试 iOS、macOS、tvOS、watchOS 和 visionOS 应用,无需打开 Xcode。无需 Xcode 窗口,无需编辑器。支持 Xcode 项目和工作区、Tuist、XcodeGen 和 Swift 包。 完整文档保存在 。如果能节省时间,给收购⭐️加星号或成为赞助💰商 一台带Xcode的Mac就是整个依赖列表。那么: 运行构建、安装、启动并流式传输日志。按R键重建并不离开重启,按Q键退出。 第一次运行会问要构建哪个方案以及在哪里运行,然后你再也不会回答。要跳过这个问题,请说你想放在哪里: - : sweetpad 运行——热补丁你保存到实时进程中的每个 Swift 文件,使应用保持屏幕和状态。- : Sweetpad BSP 初始点 SourceKit-LSP 在 SweetPad 的构建服务器上,这样 Neovim、Zed、Helix 和 Emacs 就能在真正的 Xcode 项目中获得完成和诊断。

概述(AI 翻译)

适用于人类和代理的xcodebuild。

一个命令行工具,可以构建、运行、调试和测试iOS、macOS等应用,无需打开即可 Xcode。它支持Xcode项目和工作区、Tuist、XcodeGen和Swift 包裹。

第一次运行请求方案和目的地,并保存答案。当run处于激活状态时, 按r重建,q退出。

特色

  • 使用愉快:简短命令,提示符就位 每个指令都需要标记,并且内置了辅助功能。
  • 短构建输出:小型应用的构建 打印7行,其中xcodebuild打印350行。
  • 目的地:模拟器、连接设备, Mac,按名称选中,编号为--on。
  • 测试:运行单次测试,重跑失败,重试 不稳定的测试、出口覆盖和JUnit报告。
  • 自动补全:sweetpad bsp init 设置 SourceKit-LSP 适用于 Neovim、Zed、Helix 和 Emacs。
  • 热装填:sweetpad run --hot 应用保存 Swift 更改时无需重启应用。
  • 调试:Neovim、Zed 中的断点, 或通过sweetpad dap进行VS Code,加上脚本化的lldb会话 以及结构化的崩溃报告。
  • 脚本与配置项:JSON 输出与特定 每个指令都有退出代码。

本页由 AI 翻译,技术细节请以原文为准。

README

SweetPad

xcodebuild for humans and agents.

A command-line tool that builds, runs, debugs, and tests apps for iOS, macOS, etc. without opening Xcode. It works with Xcode projects and workspaces, Tuist, XcodeGen, and Swift packages.

brew install sweetpad-dev/tap/sweetpad

cd MyApp
sweetpad run                        # build, install, launch, and stream logs
sweetpad run --on "iPhone 16 Pro"   # pick a simulator or device
sweetpad test --on booted           # test on the simulator that is already booted

The first run asks for a scheme and a destination and saves the answers. While run is active, press r to rebuild or q to quit.

Features

  • Pleasant to use: short commands, prompts in place of required flags, and built-in help for every command.
  • Short build output: a small app’s build prints 7 lines, where xcodebuild prints 350.
  • Destinations: simulators, connected devices, and the Mac, picked by name with --on.
  • Testing: run a single test, rerun failures, retry flaky tests, and export coverage and JUnit reports.
  • Autocomplete: sweetpad bsp init sets up SourceKit-LSP for Neovim, Zed, Helix, and Emacs.
  • Hot reload: sweetpad run --hot applies saved Swift changes without restarting the app.
  • Debugging: breakpoints in Neovim, Zed, or VS Code through sweetpad dap, plus scripted lldb sessions and structured crash reports.
  • Scripts and CI: JSON output and specific exit codes on every command.
  • Agent skills: instructions that teach coding agents to use the CLI.

More

Documentation: sweetpad.hyzyla.dev

There is also a VS Code extension. The CLI does not depend on it.

Sponsor: GitHub Sponsors · Buy Me a Coffee

License: MIT

在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add sweetpad-dev/sweetpad
新手?先看 mcpskill.org 教程 →