Launch an app on OS X with command line

I want to launch an app on OSX from a script. I need pass it command line arguments. Unfortunately, open doesn't accept command line args. The only option I can think of is to use nohup myApp >...

64 bit assembly on Mac OS X runtime errors: "dyld: no writable segment" and "Trace/BPT trap"

When attempting to run the following assembly program: .globl start start: pushq $0x0 movq $0x1, %rax subq $0x8, %rsp int $0x80 I am receiving the following errors: dyld: no writable...

phpize reports "Cannot find config.m4"

I am trying to run the 'phpize' command on MacOSx Mountain Lion, but this is what I get: Cannot find config.m4. Make sure that you run '/opt/local/bin/phpize' in the top level source directory...

Access denied for user root - mysql on MAC OS

I know how do skip this problem on ubuntu, but how can i do it on MAC OS? How can i set password for mysql on MAC? Doesn't work mysqladmin -u root password NEWPASSWORD 2)Doesn't work mysqld...

Consistent Dispatch queue: com.apple.root.default-qos.overcommit crash

Anyone had experience diagnosing these crashes? I have a single user getting them consistently, and though I found an iOS related post, my app is not crashing on the same type of operation...

How to listen to global hotkeys with Swift in a macOS app?

I'm trying to have a handler in my Mac OS X app written in Swift for a global (system-wide) hotkey combo but I just cannot find proper documentation for it. I've read that I'd have to mess around...

Upgrade all the casks installed via Homebrew Cask

I use Homebrew Cask to install applications on OS X. How do I upgrade all the installed casks?

How to disable pdf view(PDFKIT) internal scrolling?

in my mac application pdfkit using for pdf reader.while scroll the mouse scroll the pages changing how can avoid that.pdfview's display mode is kPDFDisplaySinglePage.No need to work scroll Please help me

Command not found go — on Mac after installing Go

I want to use Go, but I'm having trouble running the go command. I installed go1.5.2 darwin/amd64, but when I run the command go version, I get an error in the terminal zsh: command not found: go....

Disable bounce scrolling for WKWebview in macOS

Trying to disable bounce scrolling for WKWebview in macOS, but WKWebview in macOS has no "scrollView" let webView = WKWebView(frame: view.frame) print(webView.scrollView)

Ionic build on iOS returns "BUILD FAILED"

I'm working on Ionic on a Mac machine. I have installed Google Analytics plugin and trying to build project but it is not working. I am getting following error: ** **BUILD FAILED** ** The...

Clear logs in native Docker on Mac

I want to get rid of huge container log files on my docker env. I have problem finding them when running native Docker on a Mac. I am not using docker-machine (virtualbox) thing. My docker version...

Cannot Start MYSQL Server Mac

I am currently trying to run mysql server on a mac, but the Start MySQL Server from the preferences pane doesn't work, and neither does starting it from the Terminal. I have found a lot of fixes,...

BRAutoSetup quit unexpectedly - when adding the CUPS printer driver

During the installation of a new Brother printer on my Mac, I had an unpleasant alert window, that BRAutoSetup quit unexpectedly and was unable to add a printer in my network. Like these ones:

Failed to bind to address (already in use) error with Visual Studio Mac API

I'm attempting to create a Web API via .Net Core. I'm just using the boilerplate ValuesController as a Hello World. When I run the project, I get the following error: System.IO.IOException:...

How can I use Windows-Key shortcuts inside a Windows RDP running on Mac OS?

I've recently swtiched from a Windows work PC to a Mac Book Pro. Most of my development work is done over an RDP connection to a Windows 2012 server. When doing development work, I use IDE's and...

Installing ruby-2.1.2: Cannot load such file -- openssl (LoadError)

Getting few errors while installing ruby-2.1.2 using rvm. I am new to ruby and hence need assistance. Please let me know Installation log and other relevant information here: log From the log...

How to map ESCAPE key to CAPS LOCK in mac os x?

Many posts ask how to map the CAPS LOCK key to ESC. I know how to do that, but when I do, I lose the CAPS LOCK functionality all together because ESC still is mapped to escape. I want to SWAP the...

How do I set up VSCode for C/C++ on Mac with Clang/GCC?

I have been trying to setup Visual Studios Code for my Mac and I am having issues with the launch.json and the task.json. I will be using the Clang compiler. I tried following microsoft's...

R studio on Mac, how to knit to pdf?

I have some trouble with the knit function on R studio. It looks like it's finished with the "100%"? but then an error message shows as the below, and asks me to install Latex. I followed the...

ld: unsupported tapi file type '!tapi-tbd' in YAML file

I am facing an error which running "npm install" (see picture attached) node version: 10.7.0, npm version: 6.1.0 MacOs version: 10.15.6 It's a react native project (i'll be working on iOS part),...

(Mac OS) JAVA version does not change

I have 2 JAVA version on my Macbook. I want to change version from 14 to 11. I found 2 solutions on the internet but both are not working. My java -version result is openjdk version "14.0.1"...

xcode not building arm64/apple silicon universal dylib

I am on xcode 12.4 macOS catalina, Intel x64 machine. There is a project which is C/C++ project and outputs a dylib. In the xcode 12.4 the build setting "Architectures" is Apple Silicon &...

How to utilize the High Performance cores on Apple Silicon

I have developed a macOS app which is heavily relying on multithreading (a call center simulator). It runs fine on my iMac 2019 and fills up all cores nicely. In my test scenario it simulates app....

dotnet run reporting '.NETFramework,Version=v4.8 were not found'

Im getting the following error when running 'dotnet run' on my Mac OS/usr/local/share/dotnet/sdk/5.0.300/Microsoft.Common.CurrentVersion.targets(1216,5): error MSB3644: The reference assemblies...

Unable to notarise .pkg file due to The signature of the binary is invalid and The binary is not signed

I'm creating a notarized .pkg. I followed few steps to notarization the .pkg file I use the Packages to generate the .pkg file. In the Payload tab I added Python.framework to Library Folder and...

macOS 10.12 brew install openssl issue

Trying to install openssl on homebrew using: brew install openssl Is giving the following error during make: clang -I. -Iinclude -fPIC -arch x86_64 -O3 -Wall -DL_ENDIAN -DOPENSSL_PIC...

Bootstrap failed: 5: Input/output error Error: Failure while executing

Please help me with the solution as i am trying to install mongodb via brew on mac M1 air. It is throwing me this error Bootstrap failed: 5: Input/output error Error: Failure while...

Python3 and 'code' CLI not working after updating to MacOS Monterey

I updated to MacOS Monterey and now python is not working: ➜ ~ python3 --version dyld[6578]: dyld cache '/System/Library/dyld/dyld_shared_cache_x86_64h' not loaded: syscall to map cache...

Installing compiler on Mac M1 Monterey for Rcpp and other tools

I'm trying to use packages that require Rcpp in R on my M1 Mac, which I was never able to get up and running after purchasing this computer. I updated it to Monterey in the hope that this would...