Questions tagged [macos]

macOS (formerly known as OS X or Mac OS X) is the desktop operating system from Apple, found on Macintosh computers. Use this tag only if your question relates to using macOS APIs or macOS-specific behavior, not because you happen to run your code on macOS. Questions relating to using or troubleshooting macOS are off-topic and belong in the Ask Different community instead.

macOS (formerly known as OS X until 2016 and Mac OS X until 2012) is the desktop operating system from Apple Inc., found on Macintosh computers.

Use this tag for questions about writing and debugging programs on macOS. Questions relating to using or troubleshooting macOS are off-topic (use apple.stackexchange.com instead).

macOS() consists of a Mach/BSD-based kernel, operating system interfaces primarily based on FreeBSD (), and additional frameworks (written in C (), C++ (), Objective-C () and Swift () providing user interface and application-level services.

It was the successor to Mac OS 9. macOS is based upon the NeXTSTEP and OpenStep operating systems developed in the 1980s and 1990s by NeXT Inc., which Apple purchased in 1996.

Versions

  • Current macOS Big Sur
  • macOS Catalina 10.15.1
  • macOS Mojave 10.14.1
  • macOS High Sierra (10.13)
  • macOS Sierra (10.12)
  • OS X El Capitan (10.11)
  • OS X Yosemite (10.10)
  • OS X Mavericks (10.9)
  • OS X Mountain Lion (10.8)
  • OS X Lion (10.7)
  • OS X Snow Leopard (10.6)
  • OS X Leopard (10.5)
  • OS X Tiger (10.4)
  • OS X Panther (10.3)
  • OS X Jaguar (10.2)
  • OS X Cheetah (10.1)
  • OS X Puma (10.0)

More information:

116456 questions
544
votes
16 answers

Set environment variables on Mac OS X Lion

When someone says "edit your .plist file" or "your .profile" or ".bash_profile" etc, this just confuses me. I have no idea where these files are, how to create them if I have to do that, etc, and also why there seem to be so many different ones…
Anders
  • 12,556
  • 24
  • 104
  • 151
538
votes
7 answers

OS X Terminal Colors

I just got a Mac after working with Ubuntu Linux for some time. Among the many things I'm trying to figure out is the absence of colors in my terminal window- like the ones that are shown (on Linux) when running ls -la or git status. How can one…
sa125
  • 28,121
  • 38
  • 111
  • 153
531
votes
12 answers

Uninstall / remove a Homebrew package including all its dependencies

I have a Homebrew formula that I wish to uninstall/remove along with all its dependencies, skipping packages whom other packages depend upon (a.k.a. Cascading package removal in Package manager parlance). e.g. Uninstall package a which depends on…
Ory Band
  • 14,716
  • 14
  • 59
  • 66
512
votes
7 answers

Is it okay to delete the macOS Xcode CoreSimulator devices folder?

My ~/Library/Developer/CoreSimulator/Devices folder is 26 GB. Is it safe to just delete all the content? Will those files be automatically regenerated?
Franck
  • 8,939
  • 8
  • 39
  • 57
512
votes
1 answer

Installation Issue with matplotlib Python

I have issue after installing the matplotlib package unable to import matplotlib.pyplot as plt. Any suggestion will be greatly appreciate. >>> import matplotlib.pyplot as plt Traceback (most recent call last): File "", line 1, in…
J4cK
  • 30,459
  • 8
  • 42
  • 54
512
votes
15 answers

Using Caps Lock as Esc in Mac OS X

How do I make Caps Lock work like Esc in Mac OS X?
indentation
  • 9,895
  • 6
  • 21
  • 14
505
votes
34 answers

Cannot connect to the Docker daemon on macOS

I normally prefer to manage my apps on my OSX with brew I am able to install docker, docker-compose and docker-machine docker --version Docker version 17.05.0-ce, build 89658be docker-compose --version docker-compose version 1.13.0, build…
Anthony Kong
  • 37,791
  • 46
  • 172
  • 304
484
votes
25 answers

SQL Client for Mac OS X that works with MS SQL Server

How can I connect to a remote SQL server using Mac OS X? I don't really need a GUI, but it would be nice to have for the color coding and resultset grid. I'd rather not have to use a VM. Is there a SQL client for Mac OS X that works with MS SQL…
Patrick McElhaney
  • 57,901
  • 40
  • 134
  • 167
480
votes
21 answers

How to set Python's default version to 3.x on OS X?

I'm running Mountain Lion and the basic default Python version is 2.7. I downloaded Python 3.3 and want to set it as default. Currently: $ python version 2.7.5 $ python3.3 version 3.3 How do I set it so that every time I run $ python it…
Marcus
  • 9,032
  • 11
  • 45
  • 84
479
votes
11 answers

How do I install Java on Mac OSX allowing version switching?

I want to install OpenJDK Java on Mac OSX and have it work alongside other JDK's since it is a newer release. Currently, I downloaded the tar.gz and placed it in my path but that is hard to maintain. The only other install I found that do more…
Jayson Minard
  • 84,842
  • 38
  • 184
  • 227
474
votes
21 answers

Mac OS X and multiple Java versions

How can I install an additional java on MacOS? I installed jdk8 and that works fine. But now I need a jdk7 installation for development purposes. When trying to install the old version via DMG file, i get a warning, that there is already a newer…
Dakkar
  • 5,682
  • 5
  • 22
  • 28
470
votes
6 answers

`pg_tblspc` missing after installation of latest version of OS X (Yosemite or El Capitan)

I use postgres from homebrew in my OS X, but when I reboot my system, sometimes the postgres doesn't start after the reboot, and so I manually tried to start it with postgres -D /usr/local/var/postgres, but then the error occurred with the following…
Blaszard
  • 30,954
  • 51
  • 153
  • 233
461
votes
15 answers

What should I set JAVA_HOME environment variable on macOS X 10.6?

Many Java applications that use shell scripts to configure their environment use the JAVA_HOME environment variable to start the correct version of Java, locate JRE JARs, and so on. In macOS X 10.6, the following paths seem to be valid for this…
Robert Christie
  • 20,177
  • 8
  • 42
  • 37
459
votes
42 answers

dyld: Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib

I installed vapor via homebrew and then immediately wanted to jump into a project by executing vapor new Hello but then got the following message back in the terminal: dyld: Library not loaded:…
Cronay
  • 4,875
  • 3
  • 13
  • 18
450
votes
26 answers

How can I get the behavior of GNU's readlink -f on a Mac?

On Linux, the readlink utility accepts an option -f that follows additional links. This doesn't seem to work on Mac and possibly BSD based systems. What would the equivalent be? Here's some debug information: $ which readlink; readlink…
troelskn
  • 115,121
  • 27
  • 131
  • 155