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 позволяет запускать полноценные GUI-приложения macOS на джейлбрейкнутом iPad или iPhone, превращая сенсорный экран в трекпад и multitouch-ввод для окон macOS.
Это виртуальная машина вроде VirtualBuddy?Нет, macPad запускает macOS нативно через chroot, используя собственные драйверы CPU и GPU iPad, вместо аппаратного гипервизора с трансляцией GPU. Это ближе к нативной загрузочной среде, чем к виртуальной машине.
Как с помощью этого запустить macOS на моём iPad?Сначала подготовьте установку macOS rootfs, затем соберите macPad на Mac и наконец запустите собранный бинарник macPad на джейлбрейкнутом iPad или iPhone.
Нужно ли сначала сделать джейлбрейк iPad?Да, нужен джейлбрейкнутый iPad или iPhone (автор использовал джейлбрейк Dopamine) плюс подготовленный macOS rootfs, а также Mac, чтобы скомпилировать бинарник macPad.
Это сработает на любом джейлбрейкнутом iPad?Проверено только на iPad Pro M1 11 дюймов на iPadOS 16.3 с джейлбрейком Dopamine и macOS 13.4; многие части кода жёстко привязаны к этому конкретному устройству и версии ОС, хотя теоретически должно расширяться и на другие джейлбрейкнутые устройства серий M и A18.
Какие чипы поддерживаются?Он нацелен на iPad с Apple Silicon серии M и iPhone/iPad на чипе A18, поддающиеся джейлбрейку, поскольку опирается на нативные драйверы CPU и GPU Apple, а не на эмуляцию.
Он запускает macOS в отдельном окне или только на весь экран?И то и другое: у macPad есть Window Mode, показывающий приложения macOS как масштабируемые или автоматически подбирающие размер окна в стиле iOS, и Fullscreen Mode, разворачивающий рабочий стол macOS на весь экран.
Какие жесты касания поддерживает macPad?Он отображает multitouch на ввод Mac: удержание с прокруткой для правого клика, перетаскивание для перемещения/изменения размера окон или выделения текста, щипок двумя пальцами для зума/поворота, касание двумя пальцами для правого клика и свайпы тремя пальцами для Mission Control и переключения рабочих столов.
Насколько хороша производительность по сравнению с виртуальной машиной?Поскольку используются нативные драйверы CPU/GPU вместо гипервизора, автор сообщает о результатах Geekbench 6, близких к нативным, на iPad Pro M1: 2293 single-core / 8156 multi-core CPU и 32359 GPU.
Можно ли делиться файлами и буфером обмена между iOS и сессией macOS?Да, macPad поддерживает обмен файлами и содержимым буфера обмена между iOS и запущенным инстансом macOS, включая перетаскивание файлов жестом удержания с перетаскиванием двумя пальцами.
Какие есть похожие проекты?AirCard, S2Arm, Wind-Waker-Recomp, d2r-mobile, totk-mobile, opendisplay, NX2Apple, backburner
Автор
DCMMC
Размер
8 MB
Звёзды
241
Обновлён
КоммитOct 21
Возраст
4 мес
Коммиты · 90 дней