macPad README

The project's README from github.com/DCMMC/macPad. As one markdown file: 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)

Searching Database…

What is this?macPad lets you run full macOS GUI applications on a jailbroken iPad or iPhone, turning the touchscreen into a trackpad and multitouch input for macOS windows.
Is this a virtual machine like VirtualBuddy?No, macPad runs macOS natively via chroot using the iPad's own CPU and GPU drivers, instead of a hardware hypervisor with GPU translation. It is closer to a native boot environment than a VM.
How do I get macOS running on my iPad with this?First prepare a macOS rootfs installation, then build macPad on a Mac, and finally run the built macPad binary on your jailbroken iPad or iPhone.
Does my iPad need to be jailbroken first?Yes, you need a jailbroken iPad or iPhone (the author used the Dopamine jailbreak) plus a prepared macOS rootfs, and you need a Mac available to compile the macPad binary.
Will this work on any jailbroken iPad?It has only been tested on an iPad Pro M1 11-inch on iPadOS 16.3 with the Dopamine jailbreak and macOS 13.4; many parts of the code are hardcoded for that specific device and OS version, though it should theoretically extend to other M-series and A18 jailbroken devices.
Which chips does it support?It targets Apple Silicon M-series iPads and A18-chip iPhones/iPads that can be jailbroken, since it relies on native Apple CPU and GPU drivers rather than emulation.
Does it run macOS as its own window or fullscreen only?Both: macPad has a Window Mode that shows macOS apps as resizable or auto-sized iOS-style windows, and a Fullscreen Mode that runs the macOS desktop across the whole screen.
What touch gestures does macPad support?It maps multitouch to Mac input: hold-to-scroll for right click, drag to move/resize windows or select text, two-finger pinch to zoom/rotate, two-finger tap for right click, and three-finger swipes for Mission Control and desktop switching.
How good is the performance compared to a VM solution?Because it uses native CPU/GPU drivers instead of a hypervisor, the author reports near-native Geekbench 6 scores on an iPad Pro M1: 2293 single-core/8156 multi-core CPU, and 32359 GPU.
Can I share files and clipboard between iOS and the macOS session?Yes, macPad supports sharing files and clipboard content between iOS and the running macOS instance, including dragging files over with a two-finger hold-and-drag gesture.
Creator
DCMMC
Size
8 MB
Stars
241
Updated
CommitOct 21
Age
4mo
Commits · 90 Days