RepositoryObjective-C
darlinghq

darlinghq/darling

Darwin/macOS emulation layer for Linux

13.9kstars
583forks
392issues
2views

🐧 Run macOS Apps on Linux Without a VM

Darling lets Linux run macOS binaries natively via Mach-O loading and Darwin syscall translation.

Darling is a runtime environment for Linux that executes macOS applications without virtualization. Built by the Darling team, it provides a Mach-O binary loader and a userspace kernel server (darlingserver) implementing macOS Mach IPC, POSIX, and Darwin syscalls on top of Linux. Low-level components like XNU and libSystem derive from Apple's open-source releases, while higher-level frameworks are reimplemented.

✨ Highlights

  • Mach-O binary loader: runs macOS executables directly on Linux without emulation
  • Userspace kernel server (darlingserver): implements Mach IPC, POSIX, and Darwin syscalls on Linux
  • Darwin syscall translation: translates macOS system calls to Linux equivalents
  • Framework reimplementations: includes Foundation, AppKit (Cocotron-based), CoreAudio, CoreFoundation
  • DPREFIXes support: virtual chroot-like environments for safe software installation
  • CLI tools functional: many command-line macOS tools already work
  • GUI development: AppKit implementation and initial Metal backend via Vulkan translation
  • Package management: supports .pkg installation and DMG image mounting

💡 Why it matters

Unlike traditional virtualization or Wine-style compatibility layers, Darling translates macOS syscalls at the kernel interface level rather than emulating hardware. This reduces overhead while maintaining compatibility with macOS binaries. The project is especially valuable for developers needing to test macOS CLI tools on Linux infrastructure or run macOS applications in containerized environments.


#Darwin #macOS #Emulation #Linux #OpenSource #TiniX