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
748 B
Raw Blame
#include <CoreFoundation/CoreFoundation.h>
#include <mach/mach.h>

// Renamed from kIOMasterPortDefault after iPadOS 14. Both constants represent
// the default IOKit main port and are MACH_PORT_NULL by contract.
const mach_port_t kIOMainPortDefault = MACH_PORT_NULL;

// IOMainPort replaced IOMasterPort after iPadOS 14. Forward the Ventura
// spelling to the identical legacy operation on the oldest supported host.
extern kern_return_t IOMasterPort(mach_port_t bootstrapPort,
                                  mach_port_t *masterPort);

kern_return_t IOMainPort(mach_port_t bootstrapPort, mach_port_t *mainPort)
{
    return IOMasterPort(bootstrapPort, mainPort);
}

const CFStringRef kIOHIDServiceCapsLockLEDOnKey =
    CFSTR("CapsLockLEDOn");