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
40
votes
2 answers

How to install gpg2 via homebrew?

I want to install gpg2, however when I run brew install gpg2 (also tried brew install gnupg2) it always installs gpg instead of gpg2. Currently, running the gpg command works but not gpg2. How can I resolve this? EDIT: Tried brew install gnupg…
Pear
  • 785
  • 2
  • 10
  • 19
40
votes
21 answers

OS X 10.6.6 and "adb devices" fails to list android devices

adb devices was working fine last year, but after upgrades and new software installs, adb devices no longer recognizes USB attached Android devices. Here is what I have tried: adb kill-server adb devices adb usb error: Device not found
RSStepheni
  • 467
  • 1
  • 5
  • 6
40
votes
4 answers

Does NSView have anything analogous to UIView's setNeedsLayout/layoutSubviews methods?

Do I put such things into the display method? Or is there something analogous?
William Jockusch
  • 26,513
  • 49
  • 182
  • 323
40
votes
15 answers

Ionic build android, Error: spawn EACCES

If I follow this steps to create a new app: Rubens-MacBook-Pro:~ rlopez$ npm install -g cordova ionic Rubens-MacBook-Pro:~ rlopez$ ionic start myApp tabs Rubens-MacBook-Pro:~ rlopez$ cd myApp Rubens-MacBook-Pro:myApp rlopez$ ionic platform add…
rubenlop88
  • 4,171
  • 2
  • 28
  • 32
40
votes
3 answers

How to change PHP version on MAMP 4.1

I downloaded MAMP 4.1 on my Mac; by default, the only PHP versions I can use are 7.0.15 and 7.1.1 How can I use PHP 5.6? I tried the solution here Which says I should rename the versions I don't want to use to something else. But it didn't work for…
Ilo Calistus
  • 2,005
  • 3
  • 19
  • 23
40
votes
5 answers

Is it possible to make a computer behave as a bluetooth HID device?

Is it possible to make a computer behave as a bluetooth HID device? That is, given a local machine with a standard USB keyboard plugged into it, other devices could discover this machine and use it as a bluetooth keyboard. I'd like to create a linux…
Michael Wehner
  • 753
  • 2
  • 6
  • 13
40
votes
2 answers

How to override localizedDescription for custom Error in Swift 3?

Error protocol has only one property localizedDescription. I tried to create custom object inherited from NSObject and Error but I can not override localizedDescription. How can I do that? This code does not allow me to get custom description: class…
Maxim Kholyavkin
  • 4,463
  • 2
  • 37
  • 82
40
votes
8 answers

Downloading Xcode with wget or curl

I am trying to download Xcode from the Apple Developer site using just wget or curl. I think I am successfully storing the cookie I need to download the .dmg file, but I am not completely sure. When I run this command: wget \ …
Joe
  • 445
  • 1
  • 5
  • 6
40
votes
5 answers

Release UDP port used by dead process on OS X

I am on OS X 10.11.6 and trying to run a program that normally listens on UDP port 8008 upon startup. This program normally also spawns a couple of helper child processes during its operation, but the port is bound by the parent…
ktorn
  • 1,032
  • 8
  • 14
40
votes
8 answers

Using Selenium on Mac Chrome

Recently got a mac and was able to run Mozilla without any issues but having trouble installing chrome extensions and running it for selenium. Can someone guide me through the process of installing the extension and running selenium on Mac chrome.
40
votes
2 answers

iosnoop, iotop, opensnoop, execsnoop, opensnoop, dtruss and other dtrace based commands don't work on osx El capitan, macOS Sierra

While running iosnoop command on OSX 10.11.1 I get an error with the following text: dtrace: invalid probe specifier /* * Command line arguments */ inline int OPT_dump = 0; inline int OPT_device = 0; inline int OPT_delta = 0; inline…
Ara Yeressian
  • 3,746
  • 3
  • 26
  • 36
40
votes
9 answers

Your account already has a valid Developer ID Application certificate

The last couple of days I've struggled with code signing my cocoa app in Xcode. I've read through all similar topic that looked to be related, but nothing has helped. Whenever I try to export my archive I get this error message: I've tried to…
NeoID
  • 901
  • 1
  • 11
  • 29
40
votes
6 answers

Can't install gevent OSX 10.11

Trying to install gevent using Homebrew on OSX 10.11 latest public beta. When running the install, it outputs the following errors (Sorry for the large wall of code, not sure exactly where the error is) clang -DNDEBUG -g -fwrapv -O3 -Wall…
user1602600
  • 421
  • 1
  • 4
  • 5
40
votes
5 answers

Keyboard shortcut to end process for chrome tab

Coding in JS, sometimes I goof up & creates an infinite loop. Other times, I hit a debugger inside a loop & I can't refresh quickly because the code has to finish running before the refresh occurs. Whatever the case, it is often times faster to…
Matt K
  • 4,813
  • 4
  • 22
  • 35
40
votes
6 answers

Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available

I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt. I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X. I am running Yosemite. I have installed Xcode 7 and am…
Dan Nissenbaum
  • 13,558
  • 21
  • 105
  • 181