Skip to content

People have dreamed of running macOS on iPad for more than a decade. Today, that dream comes true. With Virtual Mac, iPad finally breaks free from iPadOS, enabling pro apps like Xcode, Terminal, Final Cut Pro, Logic Pro, and Pixelmator Pro to run directly on device. Requires iPad Pro (M1, M2) or iPad Air (M1) running iPadOS 14 up to 16.3.1.

Shell
982 B
Raw Blame
#!/bin/bash

set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
# shellcheck source=../lib/common.sh
source "$SCRIPT_DIR/../lib/common.sh"

OUT="$VZ_BUILD_ROOT/inputs/macos/22D68__MacOS"
mkdir -p "$OUT/usr/libexec" "$OUT/usr/sbin" \
    "$OUT/System/Library/LaunchDaemons"

need_command sshpass
real_mac_ssh_args
real_mac_scp \
    "$REAL_MAC_TARGET:/usr/libexec/InternetSharing" \
    "$OUT/usr/libexec/InternetSharing"
real_mac_scp \
    "$REAL_MAC_TARGET:/System/Library/LaunchDaemons/com.apple.NetworkSharing.plist" \
    "$OUT/System/Library/LaunchDaemons/com.apple.NetworkSharing.plist"
real_mac_scp \
    "$REAL_MAC_TARGET:/usr/libexec/bootpd" \
    "$OUT/usr/libexec/bootpd"
real_mac_scp \
    "$REAL_MAC_TARGET:/usr/sbin/rtadvd" \
    "$OUT/usr/sbin/rtadvd"
real_mac_scp \
    "$REAL_MAC_TARGET:/System/Library/LaunchDaemons/bootps.plist" \
    "$OUT/System/Library/LaunchDaemons/bootps.plist"

echo "Ventura NetworkSharing inputs fetched from $REAL_MAC_TARGET"