118,560 questions
-4
votes
0
answers
37
views
"Are you sure you want to continue connecting (yes/no/[fingerprint])" - is [fingerprint] the macOS fingerprint? [closed]
While doing:
ssh -i somekey.pem [email protected]
on a recent macOS, I see:
Are you sure you want to continue connecting (yes/no/[fingerprint])?
Is [fingerprint] the macOS biometric ...
-1
votes
2
answers
88
views
Mac App starts in light mode before switching to dark
I recently added a setting to my Mac app that allows the use to select between a light, dark, or automatic appearance. While this works overall, if you select dark and relaunch the app while the ...
-2
votes
0
answers
36
views
Map cursor movement using an AXIS joystick [closed]
I'd like to know if there's a way, or software, to map mouse movement to the movement of a gaming joystick?
For example, if I move my mouse cursor to the top of the screen, I'd like it to correspond ...
0
votes
0
answers
60
views
Using ld on macOS to turn a raw arm64 binary into an executable Mach-O binary
I am working making an assembler that compiles bf code into an executable that can be run on macOS. Essentially, I run the compiler, which outputs a raw arm64 binary to output.bin (i.e., a binary that ...
-1
votes
0
answers
60
views
Mysterious error message: "Unable to obtain a task name port right for pid {_windowserver}: (os/kern) failure (0x5)" when calling newDocument() [closed]
I have recently restarted macOS Cocoa development, and I am running a M4 iMac with Tahoe 26.4.1, and using Xcode version 26.4.1 (17E202).
When my app starts, I get no error messages, but what triggers ...
2
votes
1
answer
105
views
Trying to use /usr/bin/gcc instead of Xcode clang for purposes of C++20
I'm attempting to use the gcc compiler installed at /usr/bin/gcc by homebrew on my MacBook running Tahoe. Every time I run it, it defaults to Xcode's clang instead. I am attempting to compile C++20 ...
0
votes
0
answers
76
views
How to consume a keyboard event for a global hotkey in macos [closed]
So i have a raycast like app and for the hotkey, i recently switched to using macos apis instead of https://crates.io/crates/global-hotkey because i needed the flexibility, and I switched to NSEvent ...
0
votes
1
answer
64
views
How do I programmatically exit a custom [NSApp run] method?
As the title suggests, I have been working on a cross-platform project where I want to create apps for the macOS backend programmatically (without Xcode) through a combination of C and Objective-C, ...
3513
votes
40
answers
1.5m
views
Git is not working after macOS update ("xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools") [closed]
I updated to the latest OS, and/or restarted my computer (this happens on every major update, but this time all I did was restart my computer on 2022-09-13).
This morning I navigated to my work's ...
0
votes
1
answer
88
views
User input Form alignment
I am working on a form to allow the user to enter some input. Here is my code:
import SwiftUI
struct ContentView: View {
@State private var searchString = "TEST"
@State private var ...
Advice
0
votes
0
replies
27
views
SourceTree cannot connect to the internal network on macOS
I updated to macOS 26.2, and then SourceTree was unable to connect to internal network addresses like “172.x.x.x”, although connecting to domains worked fine.
I spent a whole night figuring this out.😣...
0
votes
1
answer
175
views
How do I fix launchctl "Bootstrap failed: 5: Input/output error"?
I have written a shell script that I want to run every time I log on to my Macbook, and I'm trying to execute it via launchd.
My script is not a persistent daemon, it's supposed to write some text to ...
0
votes
0
answers
41
views
How can I invoke the Finder's interactive "Rename…" command?
The Finder has a "Rename…" (formerly "Rename X items…") command that offers interactive pattern match & replace:
I like to invoke this operation from my own program.
Is that ...
3185
votes
40
answers
5.2m
views
Find (and kill) processes listening to port 3000 on Mac [closed]
How do I manually find (and kill) process using the terminal that listen to/use my TCP ports? I'm on macOS.
Sometimes, after a crash or bug, my Rails app gets locked to port 3000, and I can't find it ...
2
votes
2
answers
176
views
Why does this function see only 2 values when I send an associative array and 3 values when I send a normal array?
This is my function
#!/usr/bin/env bash
function run_aws_ssm_delete_parameters() {
local -r enable_logging="$1"
local -n parameter_names="$2"
shift 2
local -a ...