macOS is Apple's desktop operating system: a Unix system with a graphical environment, its own frameworks and a strict security model. It matters to developers because it is both a polished workstation and the platform for building software for Apple's devices, and because its Unix core lets the usual command-line tools work.
Key concepts
- Unix underneath: a BSD-derived userland and a hybrid kernel, so the shell, SSH and common tools work.
- Frameworks and bundles: applications are folders with a defined layout, and they use system frameworks for interface, graphics and storage.
- Sandboxing and permissions: apps ask for access to files, camera or location, and the system mediates it.
- Code signing: software carries a signature, and the system checks it before running.
- Launch services: background jobs are described in property lists and started by the system's launcher.
Vocabulary
- Bundle: a folder that behaves as one application or library.
- Plist: a property list, the structured settings file format used across the system.
- Notarization: a check of signed software by the platform owner before distribution.
- Universal binary: one executable that contains code for more than one processor architecture.
What to study, in order
- Use the terminal on a Mac and compare its tools with the Linux ones you know.
- Open an application bundle and read its structure and property list.
- Manage software with a package manager and learn where each thing is installed.
- Write a launch job that runs a script on a schedule.
- Build and sign a small command-line program with the platform's compiler.