Skip to the content ForoHackers
Log inJoin

macOS: start here

macOS
#3371 · · Quote · Report

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

  1. Use the terminal on a Mac and compare its tools with the Linux ones you know.
  2. Open an application bundle and read its structure and property list.
  3. Manage software with a package manager and learn where each thing is installed.
  4. Write a launch job that runs a script on a schedule.
  5. Build and sign a small command-line program with the platform's compiler.

Related tags

#ios #bsd #shell #kernels #secure-coding

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply