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
41
votes
8 answers

Homebrew Error: No formulae found in taps

I'm trying to install paramiko on my MacBook Pro (OSX Sierra) without going through Xcode because I'm too lazy to install Xcode honestly. When trying to run: brew install paramiko I get: Error: No available formula with the name "paramiko" ==>…
CBK
  • 660
  • 1
  • 7
  • 16
41
votes
8 answers

How to install gdb (debugger) in Mac OSX El Capitan?

How to install gdb (debugger) in Mac OSX El Capitan ? I have tried installing gdb but failed couple of time. I was following this URL : http://ntraft.com/installing-gdb-on-os-x-mavericks/ , MAC doesnot allow to install MacPorts. Could anyone please…
Tauheed Khan Mohd
  • 513
  • 1
  • 4
  • 6
41
votes
6 answers

Easiest way to force a crash in Swift

What is the easiest way to force a crash in Swift? I would like to use only one line of code (something that I can add quickly). I don't want to use breakpoints, I actually want the app to crash.
quemeful
  • 9,542
  • 4
  • 60
  • 69
41
votes
3 answers

Mac OS X - run shell script from the desktop GUI

You can create a shell script or a Python or Ruby script and run it on the Mac by using "Terminal" ... if you have Finder open, and you click on the icon for the file containing the source code of a saved shell script, is there a way to have that…
dreftymac
  • 31,404
  • 26
  • 119
  • 182
41
votes
1 answer

Make a copy of a file and give it a different name mac terminal

Mac. I'm in a directory dogs/scripts/cats. Within this directory there is a file bla.txt. I would like to make a copy of bla.txt called bla2.txt and keep it in the same directory. How do I do that? cp bla.txt dogs/scripts/cats 'bla.txt' and…
Doug Fir
  • 19,971
  • 47
  • 169
  • 299
41
votes
3 answers

Can't initialize a struct with a default value

struct Struct1 { let myLet = "my let" let myLet2: Bool let myLet3: String } let s1 = Struct1(myLet2: false, myLet3: "My url123") The error is: missing argument for parameter myLet. Why is that? It has a default value.
user266003
41
votes
11 answers

How to control the mouse in Mac using Python?

What would be the easiest way to move the mouse around (and possibly click) using Python on OS X? This is just for rapid prototyping, it doesn't have to be elegant.
Ben
  • 1,725
  • 1
  • 12
  • 12
41
votes
9 answers

Compiled mono missing default .NET libraries - System.Object is not defined or imported

I've compiled mono on OS X Mavericks following the guide located here: http://www.mono-project.com/docs/compiling-mono/mac/ Now when I compile my application using xbuild I'm getting the following errors: CSC: error CS0518: The predefined type…
Geesu
  • 5,928
  • 11
  • 43
  • 72
41
votes
4 answers

Macros for GCC/G++ to differentiate Linux and Mac OSX?

Macros for GCC/G++ to differentiate Linux and Mac OSX?
Viet
  • 17,944
  • 33
  • 103
  • 135
41
votes
3 answers

quitting xcode cocoa swift app

I have written my first swift OS/X application in XCode 6. It all works except I cannot figure out how to exit the app. I have a button to exit and the ExitNow function defined as follows: @IBAction func ExitNow(sender: AnyObject) { // ??? } I…
Lanny Rosicky
  • 603
  • 1
  • 6
  • 9
41
votes
6 answers

Docker/Boot2Docker: Set HTTP/HTTPS proxies for docker on OS X

In short: How can I set the HTTP/HTTPS proxies for Docker on Mac OS X? In detail: I run Docker (1.12) on Mac OS X behind a proxy. I followed the installation instructions and installed boot2docker. This is working fine if I pull from my…
rrhrg
  • 1,150
  • 1
  • 13
  • 15
41
votes
8 answers

Eclipse won't start after installing Mac OS X Yosemite (Mac OS 10.10)

Right after upgrading to Mac OS Yosemite (10.10), my Eclipse won't start anymore. Instead I get The JVM shared library /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/../jre/lib/server/libjvm.dylib" does not contain the…
leonard
  • 2,337
  • 4
  • 22
  • 26
41
votes
4 answers

Clang C++ Cross Compiler - Generating Windows Executable from Mac OS X

I have created a C++ application using Xcode on my Mac using the Clang compiler. I want to compile my source files to create an executable that can be ran on a windows machine however I cant get Clang to generate me an executable. Here is what I've…
gavlaaaaaaaa
  • 612
  • 2
  • 7
  • 11
41
votes
3 answers

Mac OS X virtual audio driver

I want to create a virtual audio device that gets audio data from the default output (which is an output IOAudioStream) and converts it to an input IOAudioStream. I went through most of the examples I could find, however they only implement a…
UpL1nK
  • 559
  • 1
  • 6
  • 14
41
votes
3 answers

Setting a boolean property in Info.plist from a User Defined Setting

It's simple to set a property in an Info.plist file from a user defined setting, you just use ${YOUR_SETTING_NAME} as the value. However, is it possible to do this for a bolean property? The structure in the plist file for a boolean…
edoloughlin
  • 5,821
  • 4
  • 32
  • 61