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.

38,510 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
29 votes
1 answer
4k views

"Spotlight quit unexpectedly" in MacOS Catalina version 10.15.4, This crash happening after I have installed Xcode 12

I have shown below logs repeatedly. This crash happening after I have installed Xcode 12 in MacOS Catalina version 10.15.4 Any one please help me to fixing this crash. Process: Spotlight ...
Jitendra Chauhan's user avatar
28 votes
0 answers
168 views

The Focus of the Default Sharing Window

I'm using a command-line tool called terminal-share to use the macOS's system sharing service. The tool's code can be found here: https://github.com/mattt/terminal-share/ But, there is one little ...
guitarpoet's user avatar
28 votes
3 answers
1k views

Xcode Server ibtool Build Failures

I have been investigating using Xcode Server for CI. I've worked through some of the problems, but now have a problem that has stumped me. The builds seem to work alright, but then hangs during the ...
H2OBorne's user avatar
  • 319
25 votes
0 answers
2k views

SwiftUI and Catalyst: [API] cannot add handler to 3 from 3 - dropping

After converting my SwiftUI project to Catalyst I get this strange error message on the console: [API] cannot add handler to 3 from 3 - dropping This happens when a view is scrolled, even in release ...
heiko's user avatar
  • 1,356
19 votes
0 answers
2k views

Why does my native arm64 application built using an x86_64 build system fail to be code signed unless I remove the previous executable?

I have a simple C application: #include <stdio.h> int main() { printf("Hello, world!\n"); } When I: build this on an Apple Silicon device targeting arm64 using a build system that ...
Shepmaster's user avatar
  • 419k
19 votes
0 answers
2k views

Color Space options for CIContext

When creating a Core Image CIContext using the following: contextWithCGLContext:pixelFormat:colorSpace:options: You can specify a color space with a CGColorSpaceRef. However, the options dictionary ...
Cutterpillow's user avatar
  • 1,757
19 votes
1 answer
31k views

How can I resolve a "No such xattr: com.apple.quarantine" error and path error for arduino ide?

I am trying to update my arduino IDE to a newer version so that it will work on IOS Catalina. I am following some instructions on how to make them compatible but I am stuck on this step. I am meant to ...
nains's user avatar
  • 239
18 votes
1 answer
3k views

Two versions of icu4c installed by Homebrew

Whenever I attempted to run npm --version or node --version on my Mac, I was getting the following error: $> node --version dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.63.dylib ...
stevendesu's user avatar
  • 16.5k
18 votes
0 answers
3k views

VSCode debugger very slow when evaluating variables

I don't know why my VSCode is extremely slow when I debug a net core Webapi, it takes several seconds to evaluate a line when I press F10 and is very frustrating. The problem comes when evaluating ...
Yuri Morales's user avatar
  • 2,440
18 votes
0 answers
611 views

How do I create a stereoscopic OpenGL view on the Mac?

Although Apple's documentation clearly states they support stereoscopic views on the Mac with the kCGLPFAStereo and NSOpenGLPFAStereo pixel format attributes, I've been unable to get any semblance of ...
Huperniketes's user avatar
18 votes
0 answers
2k views

Creating fat files: libtool vs lipo (Should I prefer lipo?)

I wonder what would be the difference when using: lipo -create i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a and libtool -static i386/libAwesome.a armv7/libAwesome.a -o fat/libAwesome.a ...
nacho4d's user avatar
  • 44.7k
18 votes
2 answers
19k views

Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)"

I am setting up remote debugger in IntelliJ on Mac. I followed the template without any modification. Then I click the "Debug xxx" button. It shows "Error running 'Remote Debugger': Unable to open ...
Jill Clover's user avatar
  • 2,298
17 votes
1 answer
15k views

Upgrading to MYSQL 8 - MAMP

I have installed MAMP on my MAC machine and I am trying to upgrade it to use MySQL 8. However, I am not having any luck. I have tried following script but database migration fails. Also, sequelPro ...
shahmanthan9's user avatar
17 votes
1 answer
4k views

Native library lz4 not available for Spark

How do I add the lz4 native libraries for use by Spark workers? I have tried to add them via both LD_LIBRARY_PATH and ( as shown - but no accepted or even upvoted answer - in Apache Spark Native ...
WestCoastProjects's user avatar
16 votes
0 answers
2k views

Apple Push Notifications arriving on MacOS, but not in the application itself

I'm running an iOS one-time password (OTP) application, and a corresponding MacOS companion app. In the iOS application, users are able to tap on one-time passwords, resulting in the iOS application ...
Tijme's user avatar
  • 59
16 votes
0 answers
4k views

How to suppress warnings generated by accessing `AVAudioEngine`'s `inputNode` on macOS

I have the following test code for getting realtime microphone input on macOS: import AVFoundation // for AVAudioEngine class Mic { public let audioEngine = AVAudioEngine() func ...
P i's user avatar
  • 30.1k
16 votes
1 answer
720 views

MATLAB no longer unloading MEX-files after upgrade to macOS Mojave

In MATLAB, clear mex unloads all MEX-files from memory (unless they're locked). Under previous versions of macOS, I was able to re-compile a MEX-file and run the modified version without restarting ...
Cris Luengo's user avatar
  • 59.3k
16 votes
1 answer
7k views

When building a MACOSX_BUNDLE in CMake, how to copy the linked dynamic libraries into the bundle?

We build an OS X application, released in a .app bundle. The build management is implemented using CMake. This application depends on both CMake target libraries (possibly imported) and libraries ...
Ad N's user avatar
  • 8,226
15 votes
0 answers
1k views

How do I import a .terminal profile in Iterm2?

If I have a .terminal profile - created with the default Terminal app for Mac - how do I import it in Iterm2 ?
nicdelillo's user avatar
15 votes
1 answer
5k views

Translates the XInput calls to DirectInput calls on MAC OS X (Emulate x360 controller from PS3 one)

There are a lot of games in steam working with x360 controllers but not mapped properly with a PS3 DS3 controller... MotionInJoy do it clean with "emulate 360 controller" but it works only on PC. ...
AugustinR's user avatar
  • 159
15 votes
2 answers
1k views

Embed Web Browser in MacOS Application using Delphi XE2

How can I embed a WebView (Embedded Web browser) inside a Delphi MacOS application? It does not appear the webkit headers are included in XE2.
Phillip Roux's user avatar
  • 1,029
15 votes
1 answer
1k views

Typescript Misidentified as MPEG File on MacOS

EDIT: Still haven't found an answer for this. Here's the plist file which shows that the OS is reading .ts files as MPEG video files rather than text files: EDIT #2: I've tried restarting my computer ...
Harrison Cramer's user avatar
14 votes
0 answers
474 views

Why `std::invalid_argument` is not caught with no-rtti in macOS M1 environment?

Today I met a weird behaviour in catching exceptions in C++, could anyone clarify it to me? Code snippe #include <iostream> #include <string> #include <exception> int main() { try ...
Alexander Gruzintsev's user avatar
14 votes
0 answers
4k views

How can I find out which symbol is causing "dyld: missing symbol called"?

On MacOS, I have a set of python binaries I don't control (i.e. I can't build them with LDFLAGS='-undefined error'). On certain MacOS hosts/architectures (that is, some ARM Macs, but not all of them; ...
Zac B's user avatar
  • 4,058
14 votes
1 answer
3k views

Multipass VM not reachable via specific http ports from host

I'm running an Ubuntu VM with multipass hyperkit do run microk8s. Within the VM all things checkout and available with skaffold/kubectl port forwarding. For instance: $ multipass list Name ...
a11hard's user avatar
  • 2,024
14 votes
1 answer
3k views

MacOs Catalina 10.15.5 crashes and report gives no clue

I recently updated my MacOs from Catalina 10.15.4 to 10.15.5 (19F101). I use Android Studio as IDE to develop Android apps using Java programming language. So I also updated Android Studio to v4.0 and ...
OussaMah's user avatar
  • 827
14 votes
2 answers
6k views

OSX equivalent bluetoothctl command

When I use linux, i have a CLI ther eis bluetoothctl which I could use. Is there an equivalent one for MacOS? I am using OSX El Capitan. Thank you!
Nicky Lim's user avatar
  • 139
13 votes
1 answer
3k views

Docker push to Amazon ECR slows or freezes

Recently, my docker push commands to a remote ECR registry have become extremely, extremely slow, sometimes maybe frozen. It hangs long (or forever) in Preparing, or Waiting, or half-way through ...
salezica's user avatar
  • 76k
13 votes
0 answers
5k views

Increase speed to Xcode Builds (by terminal commands only)

There are more tips and tricks about how to decrease build timing. Some of them are too old, other working only with simulator devices, other for example explain how to disable the code coverage ...
Alessandro Ornano's user avatar
13 votes
1 answer
6k views

ld: unknown option: --no-as-needed. Any workaround?

I am trying to install a project which was developed on Ubuntu, but now I am trying to make it run on Max OSX - version: 10.10.5 (Yosemite). My current ld version that comes by default with OSX: ld -...
Abhishek Balaji R's user avatar
13 votes
0 answers
3k views

How to get a specific video area in Swift AVPlayer?

I am working on Swift base MAC OS-X application. The user will choose a video file and the NSView Controller will play the video using AVPlayerView. The user can draw a rectangle over the AVPlayerView ...
Ali's user avatar
  • 1,112
13 votes
0 answers
1k views

How should I clean up the launchd StandardOutput or StandardError logs?

I've got a program that runs as a launchd agent, and I have stdout and stderr sent to a log file using the StandardErrorPath and StandardOutputPath keys. I'm quite keen on having stdout/stderr logged ...
Tom Seddon's user avatar
  • 2,718
13 votes
0 answers
820 views

How to best replicate the Travis CI OS X Build Environment on a local Mac?

Has anyone replicated the Travis CI OS X Build Environment on a local Mac? We are trying to build a cross-platform collection of binary python packages, and while we have Linux builds on Travis CI, ...
Rich Signell's user avatar
  • 15.7k
13 votes
1 answer
983 views

Bring new GTK 3 window to foreground on OSX

How do I bring any new GTK 3 window to the foreground on OSX sierra? Any window I open (using gtk-rs or python) ends up in the background first. I tried: set_modal(true) set_keep_above(true) present()...
languitar's user avatar
  • 6,734
13 votes
1 answer
2k views

Bulleted list with NSTextList in NSTextView example?

I would want to parse user input in a NSTextView, so that a line beginning with "- " would automatically start a bulleted list. What do I have to do to the NSTextView.textStorage to enable a bulleted ...
Melodius's user avatar
  • 2,715
12 votes
0 answers
563 views

Determine dimensions of full-screen macOS application windows below the camera housing notch

I need to determine the dimensions of a full-screen application window on a display with a camera housing notch. I'm using a Mac Book Pro (14-inch, 2021) but I'm looking for a general technique. ...
Rob Smallshire's user avatar
12 votes
0 answers
4k views

PhantomJS attempting to install as if OS is Linux/arm64 when I am using Mac Big Sur?

I am receiving the below error message when running npm install on a project: #10 35.10 PhantomJS not found on PATH #10 35.10 Unexpected platform or architecture: linux/arm64 #10 35.10 It seems ...
rose's user avatar
  • 121
12 votes
0 answers
3k views

Hide menu bar in mac os with a delay

In macos it is possible to auto hide the dock, and then set a delay with the line defaults write com.apple.dock autohide-delay -float <n> where <n> is the number of seconds the mouse has ...
noibe's user avatar
  • 337
12 votes
0 answers
821 views

encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted

Testing failed: CoreAppTests: CoreApp.app (10848) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying ...
Andrew Kramer's user avatar
12 votes
3 answers
3k views

Javafx - open login.microsoftonline.com page in webview component

I have problem with opening login.microsoftonline.com page in webview component from javafx. I have simply code that should open this page without any trouble: WebView webView = new WebView(); ...
kosmit's user avatar
  • 661
12 votes
1 answer
788 views

Print a web view content with a static header

Note: I am working with with Swift 4 for macOS. I have an NSTableView which can be filled with data and saved into Core Data. I would like to display the TableView values with a "design". I have ...
Trombone0904's user avatar
  • 4,210
12 votes
1 answer
1k views

How to stop dragend's default behavior in drag and drop?

I hard to sum this bug in words. So I made the video for the bug. Basically when dragEnd is called the element animates as if going to original place. How to stop the default behavior? I made a fiddle ...
igauravsehrawat's user avatar
12 votes
2 answers
2k views

iCloud Core Data sharing between OSX and iOS

I have an application for OSX and iOS and both use iCloud for sharing core data between them. When I make changes in the iPhone I can see them at OSX app and the ...
user3065901's user avatar
  • 4,748
12 votes
0 answers
427 views

NSCollectionView drag and drop placeholder size

I've managed to get drag and drop working on my NSCollectionView, but there are some issues with the visual appearance and behaviour. The main issue is that the drop zone / placeholder is the wrong ...
Luke Rogers's user avatar
  • 2,408
12 votes
1 answer
2k views

iBeacons generated under Mavericks OSX works but have some different bytes from iOS

I follow this sample project BeaconEmitter under OSX to generate samples iBeacons for develop an application on iPhone. BeaconEmitter application is based on the tutorial from Matthew Robinson, and ...
megabri's user avatar
  • 901
12 votes
2 answers
3k views

How do you author Mac package to install without requiring admin privileges on Lion?

I'm trying to understand how to fix my Mac package developed in Packagemaker (that comes with Xcode 2.4.1) to install on OS Lion 10.7 without requiring admin privileges when it is being run as a ...
Brian's user avatar
  • 121
12 votes
1 answer
1k views

Writing an OS X kernel extension to implement Linux's SO_BINDTODEVICE socket option

I want to be able to force a socket through a specific network interface. In Linux the kernel allows a programmer to achieve this by setting said socket option - but in OS X I'm in the dark. And ...
Dor's user avatar
  • 902
11 votes
1 answer
831 views

SwiftUI: Issue with longer text in TextField on macOS

When I enter (or paste) text in a TextField on macOS and the string requires more space than available in TextField I would expect some sort of scrolling behaviour that moves along with the text ...
viedev's user avatar
  • 1,319
11 votes
0 answers
2k views

R on macOS M1 uses swap instead of RAM - how do I increase RAM use?

I have an M1 macbook pro with macOS Monterey running the dedicated R aarch64 version. R version 4.1.0 (2021-05-18) Platform: aarch64-apple-darwin20 (64-bit) Running under: macOS 12.2.1 R refuses to ...
asachet's user avatar
  • 6,850
11 votes
0 answers
955 views

GPG Suite remember password indefinitely

I'm using GPG Suite with macOS Monterey, in order to save a GPG key's password, so that I can make verified git commits. Problem: Currently every time I make a verified commit (git commit -S -m "...
Thanasis M's user avatar
  • 1,294

1
2 3 4 5
771