macPad README

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

macPad

A touch-first macOS workspace for jailbroken iPad.

macPad presents a Ventura macOS userspace as native iPadOS windows. macOS arm64 applications run in a chroot; iPadOS keeps control of the kernel, AGX GPU, display, audio, input, power state, and Stage Manager lifecycle.

Historical macPad demo

The video is a historical milestone, not a compatibility or performance guarantee for the current build.

[!WARNING] macPad is a controlled research beta. It requires a jailbroken test device, private/version-specific interfaces, a full macOS filesystem, and recoverable backups. Read AGENTS.md before changing or porting it.

What works

The renderer does not require VNC or RFB. VNC remains available as a diagnostic and recovery observer.

Validated configurations

Device and system Jailbreak macOS userspace Status
iPad13,6 (M1), iPadOS 16.3.1 / 20D67 Dopamine rootless Ventura 13.4 / 22F66 Primary and broadest validation target
iPad14,5 (M2), iPadOS 16.0 / 20A8372 Dopamine rootless Ventura 13.4 / 22F66 Display, input, audio, VS Code, Steam, and exact arm64 Unity game path validated with narrower coverage
iPad14,3 (M2), iPadOS 16.5.1 / 20F75 Dopamine rootless Ventura 13.4 / 22F66 Porting candidate: compiler/AGX/workspace startup reached runtime witnesses, but final unlocked Host pixels and interaction are still pending
iPad13,7, iPadOS 16.6 NathanLR Ventura experiment Unsupported by the current CoreTrust/signing chain
Other devices/builds unknown unknown Must be treated as a new port

Do not interpret this as “all M-series or A-series devices work.” Private framework UUIDs, instructions, GPU ABIs, and jailbreak trust behavior vary by build. The installer intentionally refuses environments without the Dopamine-compatible /var/jb/usr/bin/jbctl backend.

Performance is workload-specific. On the recorded M2 window-mode runs, corrected VS Code TestUFO produced about 117.7–117.9 visible FPS, and a foreground 4K60 YouTube workload produced about 59.2 visible FPS while the panel scheduler remained near 119.9 Hz. The arm64 Unity 2022.3.62f2 7 Days to Die startup/title path reached about 116 FPS. That is not an in-world M2 MacBook-equivalent result. See dated evidence for exact scope and caveats.

Rendering policy

macPad uses two layers:

  1. Every supported app has a final-composite or exact-window IOSurface/Metal fallback.
  2. A window or region uses direct-drawable acceleration only when producer identity, ownership, geometry, frame sequence, and GPU completion are valid.

Resize, Scene disconnect, or owner change invalidates the direct surface before fallback. Streams are bounded latest-state channels; a slow consumer drops obsolete frames instead of growing memory or blocking WindowServer. These rules are what let smooth 120 Hz presentation coexist with sane heat and power.

Install and start

macPad does not distribute macOS, Apple private frameworks, commercial apps, or game data. Obtain the Ventura 13.4 / 22F66 filesystem legally and prepare it at /var/mnt/rootfs.

For the full prerequisites, large-rootfs resumable transfer, build, trustcache, and recovery instructions, follow the MacWSBootingGuide README. The source trees are intentionally kept aligned; the guide contains the developer-oriented explanation while this repository is the product-facing home.

On a prepared Dopamine device with Theos installed:

ssh -p <SSH_PORT> mobile@<DEVICE> \
  'THEOS=/var/jb/var/mobile/theos \
   bash /var/jb/var/mobile/macPad/misc/build_on_ios.sh'

Or cross-build from macOS:

gmake FINALPACKAGE=1 STRIP=0 THEOS_PACKAGE_SCHEME=rootless package install \
  THEOS_DEVICE_IP=<DEVICE> THEOS_DEVICE_PORT=<SSH_PORT> \
  GO_EASY_ON_ME=1

Run post-install and start the production profile from the iOS shell:

sudo bash /var/jb/usr/macOS/bin/postinst.sh
sudo bash /var/jb/usr/macOS/bin/macos_gui.sh production
sudo bash /var/jb/usr/macOS/bin/macos_gui.sh status

Stop cleanly:

sudo bash /var/jb/usr/macOS/bin/macos_gui.sh stop

If the stack enters a crash loop or an old profiler/debugger remains active:

sudo bash /var/jb/var/mobile/macPad/misc/cleanup_all.sh

Do not repeatedly restart WindowServer while it is looping.

Develop and deploy changes

Use the content-verified device pipeline rather than overwriting a live signed binary:

export MACWS_DEVICE=mobile@<DEVICE>
export MACWS_DEVICE_PORT=<SSH_PORT>
export MACWS_REMOTE_PROJECT=/var/jb/var/mobile/macPad

bash misc/device_pipeline.sh --sync-only
bash misc/device_pipeline.sh --component host --restart-workspace
bash misc/device_pipeline.sh --component full --restart-workspace

The pipeline supports runtime, display, input, workspace, host, hostd, compiler, libmachook, metal, and full. It verifies source and installed artifacts and avoids stale vnode code-signature cache problems. If this variable is omitted, the shared pipeline's canonical remote default is /var/jb/var/mobile/MacWSBootingGuide.

Run tests before device acceptance:

python3 -m unittest discover -s misc -p 'test_*.py'
python3 misc/audit_runtime_switches.py
clang -std=c11 -Wall -Wextra -Iinclude misc/macws_protocol_test.c \
  -o /tmp/macws_protocol_test
/tmp/macws_protocol_test
git diff --check

Use Codex or another coding agent to port macPad

Start by making the agent read AGENTS.md completely. That file is the shared engineering memory for Codex, Claude Code, other agents, and human maintainers. It records the architecture, exact compatibility matrix, failed approaches, binary-evidence discipline, test/deploy workflow, and subsystem invariants.

Suggested prompt:

Read AGENTS.md completely. Treat my device/build as unsupported until proven. Inventory hardware, iPadOS/macOS builds, jailbreak trust backend, rootfs, free space, and exact target UUIDs/hashes without changing the device. Reproduce one bounded failure and separate FACT from THEORY. Do not use a NOP, forced branch, blanket validation bypass, skipped assert, or zero-filled fake object as a fix. Trace the upstream producer, support the diagnosis with exact-binary disassembly or a copied runtime witness, add a narrow fail-closed adapter and tests, validate the visible/protocol endpoint and thermal state, write dated evidence, and synchronize MacWSBootingGuide and macPad.

For reliable agent work:

Known boundaries

Documentation

Credits

macPad (DCMMC/macPad)

正在搜索数据库…

这是什么?macPad 让你在已越狱的 iPad 或 iPhone 上运行完整的 macOS GUI 应用,把触屏变成 macOS 窗口的触控板和多点触控输入设备。
这像 VirtualBuddy 那样的虚拟机吗?不是,macPad 通过 chroot 原生运行 macOS,使用 iPad 自带的 CPU 和 GPU 驱动,而不是带 GPU 转译的硬件虚拟机管理程序。与其说它是虚拟机,不如说它更接近原生启动环境。
怎么用它让 macOS 在我的 iPad 上跑起来?先准备一个 macOS rootfs 安装,然后在 Mac 上构建 macPad,最后在已越狱的 iPad 或 iPhone 上运行构建好的 macPad 二进制。
我的 iPad 需要先越狱吗?需要,你需要一台已越狱的 iPad 或 iPhone(作者用的是 Dopamine 越狱)以及准备好的 macOS rootfs,还需要一台 Mac 来编译 macPad 二进制。
它在任何越狱 iPad 上都能用吗?它只在运行 iPadOS 16.3、使用 Dopamine 越狱的 11 英寸 iPad Pro M1 上测试过(配合 macOS 13.4);代码的许多部分是针对那台特定设备和系统版本硬编码的,不过理论上应能扩展到其他 M 系列和 A18 越狱设备。
它支持哪些芯片?它面向可以越狱的 Apple Silicon M 系列 iPad 和 A18 芯片的 iPhone/iPad,因为它依赖 Apple 原生的 CPU 和 GPU 驱动,而不是模拟。
它是把 macOS 显示为独立窗口,还是只能全屏?两者都有:macPad 有一个窗口模式,把 macOS 应用显示为可调整大小或自动尺寸的 iOS 风格窗口;还有一个全屏模式,让 macOS 桌面铺满整个屏幕。
macPad 支持哪些触控手势?它把多点触控映射为 Mac 输入:按住滚动对应右键,拖动可移动/调整窗口大小或选择文本,双指捏合缩放/旋转,双指轻点为右键,三指滑动打开 Mission Control 和切换桌面。
和虚拟机方案相比性能如何?由于使用原生 CPU/GPU 驱动而非虚拟机管理程序,作者报告 iPad Pro M1 上的 Geekbench 6 成绩接近原生水平:CPU 单核 2293/多核 8156,GPU 32359。
我可以在 iOS 和 macOS 会话之间共享文件和剪贴板吗?可以,macPad 支持在 iOS 和运行中的 macOS 实例之间共享文件和剪贴板内容,包括用双指按住拖动手势把文件拖过去。
作者
DCMMC
大小
8 MB
星标
241
更新
提交Oct 21
时长
4个月
提交 · 90 天