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
17 answers

HTTP debugging proxy for Linux and Mac

I use the Fiddler proxy to debug all kinds of HTTP issues on Windows. It's great for inspecting headers and responses across multiple pages. Is there a good HTTP debugging proxy for Mac and Linux? I found Charles, but it's $50 once the trial runs…
George V. Reilly
  • 15,885
  • 7
  • 43
  • 38
41
votes
7 answers

Best way to make NSRunLoop wait for a flag to be set?

In the Apple documentation for NSRunLoop there is sample code demonstrating suspending execution while waiting for a flag to be set by something else. BOOL shouldKeepRunning = YES; // global NSRunLoop *theRL = [NSRunLoop…
Dave Verwer
  • 6,140
  • 5
  • 34
  • 30
41
votes
2 answers

Count number of specific file type of a directory and its sub dir in mac

I use ls -l *.filetype | wc -l but it can only find files in current directory. How can I also count all files with specific extension in its sub dirs? Thank you very much.
Xitrum
  • 7,765
  • 26
  • 90
  • 126
41
votes
5 answers

How to upload an iOS app to the app store via command line

As part of the countinues integration process of my iPhone application, I want to create a process that will automatically upload the app (.ipa) file to the apple app store. I already managed to create the package and validate it. Is there a way to…
Tomer Shiri
  • 949
  • 1
  • 10
  • 19
41
votes
7 answers

CFURLCopyResourcePropertyForKey failed because it was passed this URL which has no scheme:

I understand this is an xcode warning/error, however, it happens when I try to run gitk --all from the command line. YuFei-Zhus-MacBook-Pro:test phil88530$ gitk --all 2012-08-02 21:14:49.246 Wish[33464:707] CFURLCopyResourcePropertyForKey failed…
phil88530
  • 1,499
  • 3
  • 19
  • 27
41
votes
14 answers

Eclipse 3.5 (and newer) switching tab is very slow

I am using eclipse 3.5 (cocoa build) on Macos 10.5 with Java 1.5.0.19. I just have 3 java files opened 1 files ~ 2000 lines the other 2 are ~ 700 lines. But when I switch from 1 file tab to another, eclipse takes a long time (~ 20 seconds) to…
n179911
  • 19,547
  • 46
  • 120
  • 162
40
votes
16 answers

Cocoa Keyboard Shortcuts in Dialog without an Edit Menu

I have an LSUIElement application that displays a menubar status item. The application can display a dialog window that contains a text field. If the user right-clicks/control-clicks the text field, a menu appears that allows cut, copy, paste, etc.…
Kristopher Johnson
  • 81,409
  • 55
  • 245
  • 302
40
votes
2 answers

Why is install_name_tool and otool necessary for Mach-O libraries in Mac Os X?

I am developing a Cocoa Application using the latest version of Xcode 4, I want to link dynamic libraries to my project (dylibs). I read somewhere that adding the libraries in my project was not enough as I have to run install_name_tool and otool to…
Alex
  • 2,247
  • 1
  • 27
  • 37
40
votes
7 answers

Is there any good IDE or WYSIWYG editor for graphviz?

Actually I had downloaded an GUI for graphviz (dont remember the site), which said that they had won an Apple Design Award. But that tool really only displays an *.dot file I created. That's it. It's just called "Graphviz"... I guess that there are…
Thanks
  • 40,109
  • 71
  • 208
  • 322
40
votes
3 answers

OSX su command issue

So I cant get su command to work on a terminal. All I do is type "su" and press enter, it asks for the password and I enter my currently logged in user password. It always gives this error. I swear this used to work earlier, not sure what…
kapso
  • 11,703
  • 16
  • 58
  • 76
40
votes
3 answers

There appear to be 6 leaked semaphore objects to clean up at shutdown warnings.warn('resource_tracker: There appear to be %d

I'm trying a test connection on my Firebase Realtime database via python 3.8. I have two scripts, one is wdata (write data) and the other one is rdata (read data). The wdata.py is: from firebase import firebase firebase =…
Vazzattacc
  • 437
  • 1
  • 4
  • 7
40
votes
12 answers

This application failed to start because no Qt platform plugin could be initialized

I am stuck trying to run a very simple Python script, getting this error: qt.qpa.plugin: Could not find the Qt platform plugin "cocoa" in "" This application failed to start because no Qt platform plugin could be initialized. Reinstalling the…
Nick Foley
  • 437
  • 1
  • 5
  • 8
40
votes
3 answers

Warning: The post-install step did not complete successfully, When trying to install mysql using brew in Mac OS High Sierra

Trying to install mysql5.7 with brew on Mac OS High Sierra I have used the following commands: sudo rm -rf /usr/local/var/mysql/ brew install mysql@5.7 brew postinstall mysql@5.7 Got the below errors 2019-10-05T02:59:24.136970Z 0 [Warning]…
N20084753
  • 2,130
  • 2
  • 17
  • 12
40
votes
3 answers

Zsh tab-completion for "cd .."

How can I configure the Zsh tab-completion such that when I type cd .. it expands to cd ../ and after pressing again proposes the folders in the parent directory for completion? E.g. it should show the same behavior as when typing for…
x-way
  • 876
  • 1
  • 10
  • 12
40
votes
4 answers

how to fix "OperationalError: (psycopg2.OperationalError) server closed the connection unexpectedly"

Services My service based on flask + postgresql + gunicorn + supervisor + nginx When deploying by docker, after running the service, then accessing the api, sometimes it told the error message, and sometimes it workes well. And the sqlachemy connect…
junxian diao
  • 573
  • 1
  • 6
  • 15