README проекта с github.com/DCMMC/macPad. Одним файлом markdown: README.md.
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.
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.
UIWindowScenes with Stage Manager participation.The renderer does not require VNC or RFB. VNC remains available as a diagnostic and recovery observer.
| 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.
macPad uses two layers:
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.
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.
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
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:
oahd AOT output does
not make that executable runnable. The validated experiment uses an exact
arm64 Unity player and legally supplied game data.