Skip to main content

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.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
10 views

npm install failed in expo react native project on MacOs M1

I was trying to install a package in expo React Native project without success. I then tried running npm install and expo upgrade. Unfortunately, npm install failed with following error message: npm ...
1 vote
0 answers
58 views

Is there a SwiftUI way to make a window not closable in a macOS app?

For a macOS SwiftUI app, is there a way to make it so a window cannot be closed? I want to: Deactivate the close button—red circle—at the top left of the window. Disable the File -> Close menu ...
-1 votes
0 answers
427 views

Compiling a 32-bit C++ program in CLion on MacOS

I having trouble with my CMake file in CLion running on Mac OSX 10.14. Currently, I have the following for a 32-bit program I copied from a Linux server using a built "supplied.o" file from an ...
1 vote
0 answers
19 views

Unable to compile NASM without -no_pie on macOS

I'm trying to follow the tutorial for NASM and I made a few adjustments (like changing the entrypoint function from "start" to "_main") to get the following hello.asm to compile ...
0 votes
0 answers
35 views

Incorrect value of CMAKE_SYSTEM_PROCESSOR when using cibuildwheel and scikit-build-core on GitHub macos-14 runner

Below are demo files to reproduce the issue. I expect the value of CMAKE_SYSTEM_PROCESSOR should be arm64. However, it is x86_64. See line 1233 in the Build wheels section, which corresponds to the ...
0 votes
0 answers
19 views

`osEligibility.status reasons is empty` MacOS 15 beta

After upgrading my dev environment from: iPhone 15 Pro iOS 17+ M2 MBP MacOS 14+ Xcode 15+ to iPhone 15 Pro iOS 18 beta 3 (22A5307f) M2 MBP MacOS 15 beta (24A5279h) Xcode 16 beta (16A5171c) My iOS ...
10 votes
5 answers
16k views

Tkinter on mac shows up as a black screen

So here is my code: from tkinter import * root = Tk() root.title("Greeting") Label(root, text = "Hello World").pack() root.mainloop() but the only thing that shows up on the ...
0 votes
3 answers
410 views

MacOS Computer Systems: A Programmer's Perspective labs setup

I'm going to study this Computer Systems: A Programmer's Perspective, and do labs from http://csapp.cs.cmu.edu/3e/labs.html But I can't figure out how to start, when I'm running "make" to ...
0 votes
1 answer
34 views

how to open a pdf to specific page and zoom in python in mac-os

I am trying to open a pdf in mac-os to specific page and zoom programatically. But I am unable to do so. Here is my code for windows, can somebody please let me know what I need to change in mac-os? ...
-3 votes
0 answers
21 views

Change all kinds of system sounds in macos [closed]

Im looking for a way to change different system sounds in macos sonoma. In windows and in older versions of macos it is possible to change all kinds of system sounds to whatever audio file you want. ...
-8 votes
0 answers
27 views

Use own system sounds in macos [closed]

im looking for a way to change different system sounds in macos sonoma. In windows and in older versions of macos it is possible to change all kinds of system sounds to whatever audio file you want. ...
-1 votes
0 answers
15 views

Lenis smooth scrolling acting weird on MacOS

I have a website (shashp.xyz) that uses Lenis smooth scrolling. It works fine on Windows and Linux but on MacOS, scrolling is acting very weird. I tested it on a 2015 Intel iMac and the scrolling ...
-2 votes
0 answers
11 views

os.listdir on samba folder leads to OSError: [WinError -2146893818] Invalid Signature

I have a samba share on my laptop (macos) and I access it via my windows machine. To provide some context, I use it to store some ML datasets and I access the files via python scripts, using pathlib ...
-1 votes
1 answer
14 views

How to remove iterm2 line focus on click?

I'm currently running into an issue with iterm2 on my new macbook that I didn't had on my previous macbook, I imported my old config but it appears a new thing happens when I click on a line, it ...
49 votes
11 answers
29k views

Unable to boot the simulator, launchd failed to respond Xcode

I downloaded Xcode 10.1 from AppStore but it had some errors at startup and couldn't show up. So I downgraded Xcode to version 10.0 (10A255) from Apple official downloads. IDE works fine but now I can'...
-1 votes
0 answers
14 views

local computer MAC join ray cluster on AWS as a ray worker

I am thinking some personal project. I have a ray cluster on aws. it is possible for my local computer (mac) join the ray cluster as a worker? Is there any document about this? UPDATE i have a ray ...
690 votes
47 answers
477k views

dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib error running php after installing node with brew on Mac

I installed node using homebrew (Mojave), afterwards php stoped working and if I try to run php -v I get this error: php -v dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.62.dylib ...
2 votes
1 answer
9k views

dpkg: error: failed to open package info file '/usr/local/var/lib/dpkg/status' for reading

I followed this link to install dpkg tool on my Macbook. After that, I try to execte command sudo dpkg -i sometool.deb I get error : dpkg: error: failed to open package info file '/usr/local/var/...
-5 votes
0 answers
30 views

How to completely reset Spotlight search data on macos 15 beta? [closed]

How to completely reset Spotlight search data on macos 15 beta? My Spotlight is stupidly broken, because it is searching for a not existing contact. Rebuilding the index does not help at all, of ...
5 votes
7 answers
4k views

Vs code is not opening up in mac

I’ve been experiencing an issue with Visual Studio Code where it won’t open at all. I’ve tried uninstalling and reinstalling it several times, but there are no changes. I’m using [your operating ...
189 votes
24 answers
137k views

Cannot connect to Postgres server running through brew services

I've been looking for a solution for this and could not find a working solution. I've installed postgres using brew (brew install postgres) in my MacBook and I am currently running it using brew ...
1 vote
3 answers
3k views

Change NSComboBox drop down menu background color

I am coming from iOS/Android programming background and working on my first MAC application. I am using an NSComboBox to list some item that user can choose but having some trouble setting the ...
0 votes
2 answers
1k views

Unable to import TA-lib with Macbook Pro M1 chip macOS Big Sur version 11.4

I have successfully installed TA-Lib using the following commands: brew install ta-lib pip3 install ta-lib After that, command pip3 list have shown TA-Lib version. TA-Lib 0.4.21 However, ...
4 votes
2 answers
3k views

Unable to install Ruby on Mac with Homebrew

I am trying to install ruby 3.0 with Homebrew. brew install ruby But I am getting an error Error: No available formula or cask with the name "ruby". ==> Searching for a previously ...
0 votes
0 answers
29 views

How do I NOT apply a fill in SwiftUI [duplicate]

Normally, I call several object modifiers .fill and .stroke to apply specific details to a path. curObj.path(in: CGRect( origin: .zero, size: geometry.size )) .fill(curObj.drawInfo.fillColor ?? ....
-3 votes
0 answers
16 views

Macos Rdp using github action & Ng rock [closed]

name: CI on: [push, workflow_dispatch] jobs: build: runs-on: ubuntu-20.04 steps: - name: Download ngrok run: wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.zip -O ngrok.zip ...
0 votes
0 answers
17 views

Why are docker builds on mac apparently trying to use a proxy?

I have the following Docker file: FROM golang:1.22 WORKDIR /usr/src/app # pre-copy/cache go.mod for pre-downloading dependencies and only redownloading them in subsequent builds if they change COPY ...
-2 votes
0 answers
39 views

AppleScript not working if sandbox in enabled [duplicate]

We are using Java to get the active application running on macOS using AppleScript. "osascript", "-e", "tell application "System Events" to get the name of ...
0 votes
2 answers
380 views

WKWebView content is too small when running as a Catalyst app on Mac

I started porting my iOS app (which works on iPhone and iPad) over to Mac via the Catalyst route but WKWebView is behaving very strange. All the content is too small, it looks like it thinks the ...
-3 votes
0 answers
78 views

GCC not compiling any source codes [closed]

I'm using Clion and GCC on macOS Sequoia. And, when I tried to compile a source code, it keeps making this compile error. GCC version : gcc (Homebrew GCC 14.1.0_1) 14.1.0 Apple Clang version : Apple ...
0 votes
0 answers
28 views

How to embed a fully interactive Plotly figure in Excel on MacOS

I am trying to embed a browser object in my excel worksheet so I can display interactive charts using plotly. I found this post Plotly: How to embed a fully interactive Plotly figure in Excel? which ...
-3 votes
1 answer
31 views

how to fix "The preLaunchTask 'C/C++: clang++ build active file' terminated with exit code -1." [closed]

Every time i try to compile and run a program, the error "The preLaunchTask 'C/C++: clang++ build active file' terminated with exit code -1." shows up. Im using vs code on a apple silicone ...
1 vote
4 answers
4k views

Azure CLI won't login on MacOS

I am trying to login into the Azure CLI but when I run az login I get these error messages: Roberts-Mac-Pro:~ robertcordingly$ az login Port '8400' is taken with error '[Errno 8] nodename nor ...
0 votes
1 answer
34 views

how to use custom preview function for fzf command on zsh

foo() { echo "bar" } export -f foo fzf --preview "foo" leads to opened preview window and error msg: zsh:1: command not found: foo How can I define my custom function that ...
0 votes
1 answer
29 views

How to create a PythonMmac app using Pyinstaller?

I created an app using Py2App for Mac. The app works fine through the terminal, but not through the double click. So now I am trying to use PyInstaller after reading some of the questions here. I am ...
0 votes
1 answer
23 views

How to get rid of "Shadow content" force injected by macOS safari for live text feature?

I'm creating a site that uses imagemap using React. However, in Safari, because of Live Text feature, it won't make me interact with images when there is text in it. I found that Safari injects "...
2 votes
1 answer
46 views

CGImage.crop(to:) returns a weird crop on MacOS

I was facing a weird behavior while using the method CGImage.crop(to:). My goal is cropping a user face using the apple vision-framework to train AI-based models on it, but while running the vision on ...
-3 votes
1 answer
23 views

arm mac jpype install error(Compiling with an SDK that doesn't seem to exist)

error log: --- stderr: Compiling with an SDK that doesn't seem to exist: /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.2.sdk Please check your Xcode ...
0 votes
2 answers
72 views

SwiftUI Alert not displaying properly in a MacOS menu Bar App

I am developing a simple menu bar app on mac. It has a window containing a button saying "do something", of course, to simulate a network request. During said request, an error may happen, ...
1 vote
1 answer
417 views

How to ask for screen recording permission in electron app in Mac OS?

I am trying to create an app and ask for screen recording permission, but the app asks for permission if i directly execute desktopcapturer.getsources() function with the correct app name added. Here ...
-3 votes
1 answer
28 views

VS-Code 1.91 does not open on my big sur 11.7. How do i get to use v-scode updates on older Mac OS [duplicate]

I just downloaded the VS Code update 1.91 and it does not work on Big Sur Mac Os 11.7. Is this intended or its just an oversight. How can i use future updates for vscode on bigsur. Has anyone else ...
-1 votes
0 answers
54 views

Cmake 3.30 seems to break use of $(ARCHS_STANDARD) for Xcode Generator

In all my Cmake builds on macos devices, I've been using $(ARCHS_STANDARD) to configure the build to a 'fat library' or universal binary. if(CMAKE_GENERATOR STREQUAL "Xcode") set(...
0 votes
0 answers
18 views

Capture all inbuilt trackpad events and cancel some touch events

I'm trying to capture all trackpad events at OS level and disable few of them - say the ones in left half of trackpad. Following this question, I could level listen to events in current window view ...
0 votes
0 answers
19 views

How to include OpenMP libraries in CPack package on macOS?

I am getting familiar with CMake and CPack, but I can't figure out how to solve the following issue when creating a macOS package. I have some C++ code using OpenMP: #include <iostream> #include ...
0 votes
0 answers
32 views

How can I define my MacOS app's behaviour depending on the Focus Setting (Do Not Disturb)

I'm trying to define my MacOS app behaviour depending on if Do Not Disturb is enabled. If it is, my app will avoid opening new windows automatically or else it will open new windows resembling ...
3 votes
1 answer
472 views

SwiftUI: Resize ColorPicker on macOS

I am using a ColorPicker in one of my SwiftUI-based macOS apps. In previous versions of macOS ColorPicker behaved like a Color or Spacer View: It filled all the available space. This behaviour changed ...
39 votes
7 answers
54k views

docker-compose command not available for mac

I installed docker with the instructions here, downloading from docker-hub https://docs.docker.com/docker-for-mac/install/ But when I run docker-compose I get this error pyenv: docker-compose: ...
327 votes
17 answers
684k views

socket.error: [Errno 48] Address already in use

I'm trying to set up a server with python from mac terminal. I navigate to folder location an use: python -m SimpleHTTPServer But this gives me error: socket.error: [Errno 48] Address already ...
8 votes
1 answer
1k views

Properly handling HighDPI on MacOS with SDL and OpenGL

My attempts at High-DPI rendering on MacOS for my game, Bitfighter, always end up looking bad, like a scaled-up version of a low-res game. The game uses SDL2 + OpenGL and I have correctly enabled the ...
-1 votes
0 answers
41 views

@nestjs/schedule throws Error on macOS: Nest can't resolve dependencies of the SchedulerMetadataAccessor

I use NestJS in the latest version (10.3.10) on macOS 14.5. For time-based scheduling, I installed @nestjs/schedule also in the latest version (4.1.0). After that, I implemented the code for the ...

1
2 3 4 5
2360