macOS errors

macOS errors — Gatekeeper, permissions, Homebrew, developer tools and system settings.

CodeErrorWhat it means
is damaged and can’t be opened macOS: “App” is damaged and can’t be opened. You should move it to the Trash. Gatekeeper blocked an app that isn’t properly signed/notarized or was modified after download (quarantine att…
Operation not permitted (macOS privacy) macOS: Operation not permitted — Terminal/app lacks Full Disk Access (TCC privacy protection) macOS privacy protection (TCC) blocked access to protected folders (Desktop, Documents, Downloads, Mail, Phot…
zsh: command not found: brew macOS: zsh: command not found: brew (Homebrew not on PATH on Apple Silicon) Homebrew is installed in /opt/homebrew on Apple Silicon Macs, which isn’t on PATH until you add its shellenv…
Too many open files (macOS limits) macOS: Error: EMFILE: too many open files, watch / ulimit: setrlimit failed: invalid argument A process hit the low default per-process open-file limit on macOS (256 soft in shells), common with file wat…
git: 'credential-osxkeychain' is not a git command Git: git: 'credential-osxkeychain' is not a git command. See 'git --help' Git is configured to use the macOS keychain helper, but the helper binary isn't found by the Git you're runni…
xcode-select: error: tool 'xcodebuild' requires Xcode macOS: xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance A command needs the full Xcode app, but `xcode-select` points to the Command Line Tools only.
Homebrew: Permission denied @ dir_s_mkdir Homebrew: Error: Permission denied @ dir_s_mkdir - /usr/local/Cellar / /opt/homebrew is not writable Homebrew can't write to its prefix because the folders are owned by another user or root.
"x" can't be opened because it is from an unidentified developer macOS: “app” can’t be opened because it is from an unidentified developer Gatekeeper refuses to open an app that isn't signed with a registered Developer ID.
launchctl: Load failed: 5: Input/output error macOS: Bootstrap failed: 5: Input/output error / launchctl load: Load failed: 5: Input/output error launchd couldn't load a LaunchAgent/Daemon plist — it's invalid, already loaded, or has the wrong ownership/p…
Volume failed to unmount / disk not ejected because in use macOS: diskutil: Unmount of disk2s1 failed: at least one volume could not be unmounted / The disk wasn't ejected because one or more programs may be using it macOS can't eject a drive because a process still has files open on it.
Docker Desktop requires privileged access (vmnetd) macOS: Docker Desktop needs privileged access / com.docker.vmnetd could not be started Docker Desktop couldn't install or start its privileged helper, so it can't set up networking.
ssh-agent: keys lost after reboot / passphrase asked every time macOS: Enter passphrase for key '/Users/me/.ssh/id_ed25519': (every time after restart) macOS doesn't automatically reload SSH keys into the agent after a restart unless configured to use the keych…
Not authorized to send Apple events to x (-1743) macOS: execution error: Not authorized to send Apple events to System Events. (-1743) The app running the script isn't allowed to control another application via Automation permissions.
osascript is not allowed assistive access (-1719/-25211) macOS: execution error: System Events got an error: osascript is not allowed assistive access. (-1728) A script using System Events to click/type needs Accessibility permission for the app running it.
ld: library not found for -lssl macOS: ld: library 'ssl' not found / ld: library not found for -lssl (clang: error: linker command failed) The linker can't find OpenSSL (or another library) because Homebrew libraries aren't on its search path.
Read-only file system (macOS system volume) macOS: mkdir: /data: Read-only file system / touch: /usr/bin/x: Read-only file system Since Catalina the system volume is read-only and sealed; you can't create directories at `/` or modify syste…
Item is locked / cannot be deleted (chflags uchg) macOS: The operation can't be completed because the item is locked / rm: Operation not permitted (uchg flag) A file has the immutable (`uchg`) flag or is in use, so Finder/`rm` refuse to delete or change it.
Bad configuration option: usekeychain ssh: /Users/me/.ssh/config: line 5: Bad configuration option: usekeychain The `UseKeychain` option in `~/.ssh/config` is only understood by Apple's OpenSSH, not by a Homebrew/other Op…
Homebrew Cask: It seems there is already an App at Homebrew: Error: It seems there is already an App at '/Applications/Chrome.app' A cask install failed because the app is already installed manually (or a leftover exists).
zsh: bad CPU type in executable macOS (Apple Silicon): zsh: bad CPU type in executable: ./tool You ran an Intel (x86_64) program on an Apple Silicon Mac without Rosetta 2 (or an arm64 binary on an Intel M…
fork: Resource temporarily unavailable macOS: -bash: fork: Resource temporarily unavailable (process limit reached) The user hit the maximum number of processes (`kern.maxprocperuid`) — usually a fork bomb or runaway child pr…
illegal option on macOS (date -d, readlink -f, grep -P) macOS: date: illegal option -- d / readlink: illegal option -- f / grep: invalid option -- P macOS uses BSD versions of core tools, which lack many GNU flags that Linux scripts rely on.
mach-o file, but is an incompatible architecture macOS: dlopen: mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64') A library or binary was built for a different CPU architecture than the process loading it.
zsh compinit: insecure directories zsh: compinit: insecure directories, run compaudit for list. Ignore insecure directories and continue [y] or abort compinit [n]? zsh refuses to load completions from directories owned by another user or writable by others.
Your Command Line Tools are too outdated Homebrew: Error: Your Command Line Tools (CLT) are too outdated. Update them from Software Update / Please update to the latest macOS Homebrew requires a newer Command Line Tools version than the one installed.
Apple could not verify "x" is free of malware macOS: “app” cannot be opened because Apple cannot check it for malicious software / Apple could not verify “app” is free of malware that may harm your Mac Gatekeeper blocked an app that is not notarized by Apple.
dyld: Symbol not found macOS: dyld: Symbol not found: _SecTrustCopyCertificateChain — Expected in: /System/Library/Frameworks/Security.framework A program was built for a newer macOS (or different library version) than the one running, so a function it n…
You don't have write permissions for the /Library/Ruby/Gems directory macOS: ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory `gem install` tries to write into Apple's system Ruby, which is protected and shouldn't be modified.
hdiutil: image not recognized / no mountable file systems macOS: hdiutil: attach failed - image not recognized / no mountable file systems The `.dmg` file is corrupted, incomplete, or not actually a disk image (often an HTML download page).
The specified item could not be found in the keychain (-25300) macOS: security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain. (errSecItemNotFound -25300) A lookup in the macOS keychain found no matching item, or access to it was denied.
sed: 1: invalid command code (BSD sed) macOS: sed: 1: "file.txt": invalid command code f / extra characters at the end of p command macOS ships BSD `sed`, where `-i` requires a backup-suffix argument, unlike GNU sed on Linux.
Finder error code -36 macOS: The Finder can't complete the operation because some data in "x" can't be read or written. (Error code -36) Finder hit a read/write problem while copying — usually metadata files (`._*`, `.DS_Store`) on non-Mac file s…
Finder error code -43 macOS: The operation can't be completed because one or more required items can't be found. (Error code -43) Finder tried to act on an item that is gone, renamed, or an alias/symlink pointing nowhere.
Not enough free space to install macOS update macOS: There is not enough available storage to install this update / Installation of macOS could not continue Software Update needs several GB of free space (often 25-35 GB) to download and stage the update.
zsh: no matches found zsh: no matches found: package[extra] (glob pattern not matched) zsh treats `[ ]`, `*` or `?` in an argument as a glob and fails when nothing matches, unlike bash which passe…
Homebrew: No available formula with the name Homebrew: Error: No available formula with the name "x". Did you mean ...? Homebrew can't find a formula or cask with that name in the taps it knows.
Port 5000/7000 already in use (AirPlay Receiver) macOS: Address already in use — Port 5000 is in use by ControlCenter (AirPlay Receiver) Since macOS Monterey the AirPlay Receiver listens on ports 5000 and 7000, colliding with dev servers like Fla…
Screen recording permission required macOS: could not create image from display / "Terminal" would like to record this computer's screen / screencapture: cannot capture without permission macOS blocks apps from capturing the screen unless you grant Screen Recording in Privacy settings.
dyld: Library not loaded macOS: dyld[123]: Library not loaded: /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib — Reason: tried: ... (no such file) A program needs a dynamic library that is missing or was moved/removed (often after a Homebrew upgrade).
codesign: resource fork, Finder information, or similar detritus not allowed macOS: Error: resource fork, Finder information, or similar detritus not allowed `codesign` refuses to sign a bundle that contains extended attributes (resource forks, quarantine, FinderInfo…
hdiutil: create failed - Resource busy macOS: hdiutil: create failed - Resource busy (or: hdiutil: couldn't eject "disk2" - Resource busy) A disk image operation failed because the volume or a file in it is still in use (Finder, Spotlight, a termin…
rm/mv: Operation not permitted (System Integrity Protection) macOS: rm: /usr/bin/python: Operation not permitted — even with sudo System Integrity Protection blocks changes to protected system locations, even for root.
System software from "x" was blocked from loading macOS: System Extension Blocked — A program tried to load new system extension(s) / System software was blocked from loading macOS blocked a kernel/system extension (VPN, virtualization, drivers) until you approve it.
Unable to locate a Java Runtime macOS: The operation couldn't be completed. Unable to locate a Java Runtime. Please visit http://www.java.com for information on installing Java macOS has no JDK installed (or the installed one isn't registered), so the `java` stub fails.
Can't install the software because it is not currently available from the Software Update server macOS: xcode-select: error: Can't install the software because it is not currently available from the Software Update server `xcode-select --install` couldn't fetch the Command Line Tools from Apple's catalog.
Homebrew: Failed to update / fatal: unable to access Homebrew: Error: Failure while executing; `git fetch --force origin` exited with 128 / fatal: not in a git directory `brew update` couldn't fetch the Homebrew repositories — network, a broken git state or safe.directory proble…
Notarization: The binary is not signed with a valid Developer ID macOS notarytool: status: Invalid — The binary is not signed with a valid Developer ID certificate / does not have the hardened runtime enabled Apple's notary service rejected your app; the log lists exactly which binaries failed which checks.
You have not agreed to the Xcode license agreements macOS: Agreeing to the Xcode/iOS license requires admin privileges, please run "sudo xcodebuild -license" and then retry this command A new Xcode (or CLT) version needs its license accepted before command-line tools run.
Camera/Microphone access denied (TCC) macOS: avfoundation: Could not start capture / "Terminal" does not have access to the camera or microphone — tccd denied Privacy (TCC) blocks the app or terminal from the camera or microphone until you allow it.
Rosetta 2 not installed macOS: Rosetta is not installed — softwareupdate --install-rosetta failed / Install Rosetta to open Intel apps An Intel app (or Docker/Android emulator) needs Rosetta 2 but it's not installed on this Apple Silicon Mac.
The installer encountered an error that caused the installation to fail macOS: The installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. A `.pkg` installation script failed; the Installer UI hides the real reason.
Time Machine couldn't complete the backup macOS: Time Machine couldn't complete the backup. / The backup disk image could not be mounted / Backup failed with error 18/19/21/22 A Time Machine backup stopped because the destination is unavailable, full, or the backup set is damaged.
clang: error: unsupported option '-fopenmp' macOS: clang: error: unsupported option '-fopenmp' (OpenMP with Apple Clang) Apple's clang doesn't ship OpenMP support, so builds using `-fopenmp` fail.