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 to the Ask Different community.

0
votes
1answer
15 views

Supervisord sending instant SIGKILL

I am using launchd to launch supervisord which in turn launches a small python file, which is a bot that connects to reddit. Whenever supervisord launches using this method, it sends an instant ...
0
votes
0answers
18 views

what's the best filesystem for developing work in both windows and macos? [on hold]

I have a dual system PC which has three disks, one is NTFS for win10, the second is HFS for mac, these two are hidden to each other because I don't want the OS file being modified accidentally. now I ...
0
votes
0answers
10 views

Nonblocking connect does not report completion to kqueue

In MacOS I set up a nonblocking read+write socket to connect to a remote server. I use kqueue to wait for and coordinate I/O events. The call to connect() correctly triggers EINPROGRESS. I then ...
0
votes
0answers
7 views

Passing Arguments to VirtualBox MacOS Terminal

Trying to pass some arguments into Terminal on a MacOS VirtualBox VM (from a Windows 10 host). I can get Terminal to launch correctly, but the arguments aren't working. "C:\Program Files\Oracle\...
-1
votes
0answers
11 views

How can I remove the blur-effect from the background of an element within a NSPopover?

I am working on a menubar-program for osx using NSPopover. NSPopover-View has a blurred background, somehow that effects the background of element inside of the Popover. When the display is dark, the ...
0
votes
0answers
10 views

macOS - Design a toolbar with system controls - Graphic trouble

I'm trying to insert in my app a toolbar with system controls (not image buttons) but I'm in trouble to correctly size the textured rounded button: once inserted on the toolbar it always appears badly ...
0
votes
1answer
17 views

How to create a script that takes a string and converts it to another managed string?

My intent is to capture the values of a string that I type and have those values be shifted to other letters. Essentially it would be a fake translation program or custom cipher generation script. ...
0
votes
0answers
9 views

NSNetService doesn't contain any addresses

I'm hosting a service in a Mac application and connecting with an iOS app. While the iOS app will find the service, the service doesn't contain any addresses, so I can't connect a socket. This is my ...
1
vote
1answer
18 views

Dynamically added stylesheet only taken into account if first one

I am adding dynamically 2 style sheets in a WKWebView having local content loaded using loadFileURL. The cocoa application calls the following javascript snippet to add the stylesheets. var link = ...
1
vote
1answer
26 views

Reach two IBOutlets of NSTextField at once

I have a login-page with two NSTextFields, so I created two @IBOutlets in my viewcontroller. For some styling I have to call both of them. I want to give them the same properties, but I dont want to ...
0
votes
0answers
13 views

command 'dotnet new mvc' in Terminal but don't have mvc template

I Install .NET Core 2.2 on macOS Mojave , then type command 'dotnet new' in Terminal but don't have mvc template. I don't know why. enter image description here
1
vote
0answers
19 views

Error on import math when embedding python in C

I would like to embed python into a C application. Specifically, I would like to use sympy as part of the python portion. To accomplish this I created a clean install of anaconda. Here is a minimal ...
1
vote
0answers
25 views

Git on macOS keeps files after pull

When pulling the newest version from a git repository using git on macOS, some files and folders that were deleted in some past commit still remain after the pull. One folder that is not deleted for ...
0
votes
1answer
22 views

How to source a file from launchctl

I'm trying to source a file from a launch agent, but it's unclear how to accomplish that (or if it's even possible). I know it's easy to setenv for single variables, but I need to bring in a bunch of ...
0
votes
0answers
19 views

How to fix “Unexpected token… for architecture x86_64” error when running makefile

I'm trying to install HLA-LA on my 2016 MacBookPro (running Mojave 10.14.3) but I've been having issues compiling the makefile. I've installed all the dependencies, added the bamtools and boost paths ...
0
votes
0answers
17 views

How do I enable Eclipse/Java to handle special unicode characters

Do not know how to do the following: Using Java, Eclipse on a MacBook Pro running MacOs Mojave version 10.14 (also PostgreSQL), need to use special characters ç ś ṣ ṇ ṛ Ṇ ṃ ā ū √ and some French and ...
0
votes
0answers
21 views

Playing WAV data with AVAudioEngine

Currently, I'm getting an EXC_BAD_ACCESS error on the audio thread, and I'm trying to deduce what is going wrong. When converting .wav file data from Data to an AVAudioPCMBuffer, do I need to strip ...
-1
votes
1answer
20 views

How to fix “fatal error: boost/asio.hpp: no such file or directory”?

I have installed boost using homebrew and it was working before I followed some steps to try and get gdb debugger working but now after I followed the steps and restarted, I can't even compile my ...
0
votes
0answers
23 views

MacOS creating launch agent in a console app not working

I know how to create a launch agent with a normal application say "myLaunchd" and setting "Application is agent" to "YES" and then copying the "myLaunchd.app" to the main app's Contens/Library/...
-1
votes
2answers
38 views

How do I get terminal in OSX recognise Regex as filenames?

In OS X terminal I have the following: for filename in ^.* 2\.jpeg$; do printf "$filename\n"; done; which I want to match filenames in the current folder ending in the string " 2.jpeg" but it's not ...
0
votes
2answers
32 views

Is my diagnosis of the cause of “Could not find platform independent libraries <prefix>” correct and how can I fix it?

I'm trying to embed python into a C application. For the moment, I am trying to get the following hello world style example working #include <..../anaconda3/include/python3.7m/Python.h> // I'...
-2
votes
0answers
14 views

Probs building LLVM 8.0.0 on macOS

Can somebody share a 32-bit (mainly libs) macOS build of LLVM 8.0.0? I need universal binary version but I'd be fine with 32-bit version which I could use to create ubi ver., I'm unable to build LLVM ...
0
votes
0answers
15 views

How to link a C library to an Assembly library on Mac with clang

I have this in my C library: myc: @clang -I . -dynamiclib \ -undefined dynamic_lookup \ -o myc.dylib myc.c .PHONY: myc And this in my assembly library: buildasm: @nasm -f ...
0
votes
1answer
15 views

Facing issue on stapling ticket with Unix executable after Notarization on MAC OSX

This query on how to staple ticket with unix executable after notarization. I am new to MAC OSX environment. Following steps are used to notarize and staple unix executable :- 1) Created the ...
0
votes
1answer
25 views

Selenium WebDriver driver issue Mac

I am trying to use Selenium on a Mac and I have some issue concerning the drivers. Here is my code : from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium....
0
votes
0answers
17 views

Does it possible to go to Sleep mode in mac OS with using JAVA language, and then wake up it?

Does it possible to go Sleep mode in mac OS with using JAVA language, and then wake up it? I mean not to wait for while the Syetem went to sleep mode by themself, but i need to make, and then I should ...
0
votes
0answers
8 views

MacOS: iterm2, zsh cancelling process with control + c not working, but it works with control + m or control + shift + c

Ok, this is weird. My terminal (iterm2 with zsh) exits a command with control + m or control + shift + c now instead of only control + c. Any ideas on why this is happening? Thanks!
0
votes
0answers
13 views

Visual Query Builder - MySQL

I have been manually writing queries with JOINs but now I am getting into some complex territory especially for those queries with inner joins, aliases and multiple conditionals. My question is: Are ...
0
votes
1answer
12 views

How to do Code-signing using appdmg tool?

As mentioned here https://github.com/LinusU/node-appdmg to create dmg. I did not get any example to add for "code-sign". Has anyone used this to create dmg who can help me to know what to provide ...
-4
votes
0answers
26 views

Where can I find and OpenSource DICOM Viewer for macOS? [on hold]

I am looking for a github repository where I can download and easily build an OpenSource DICOM viewer for macOS? The DICOM viewer should be 100% DICOM standard compliant. Can anybody help me with ...
0
votes
1answer
23 views

TensorFlow issue with anaconda env

I made a CNN with TensorFlow to use it in the University Cluster. The CNN works fine on my Mac where I have an Anaconda env with TensorFlow 1.10, here all the packages I use in my working env: name: ...
1
vote
0answers
20 views

Which backend for matplotlib using MacOS?

The question of using matplotlib with MacOS is a tricky one which has already been thoroughly reviewed by a number of discussions (see below). The problem is the following: using MacOS Mojave 10.14....
2
votes
2answers
27 views

XML - group and merge elements, whilst keeping all element text

I have some XML where there are repeated elements with differing text. The repeated elements are both consecutive and non-consecutive. I am trying to merge the text from these elements, and remove the ...
0
votes
0answers
21 views

Android Studio: Extract method shortcut '⌥+⌘+M' (Option-Command-M) no longer working (macOS Mojave)

I've been using the following keyboard shortcut to extract a method in Android Studio: ⌥+⌘+M (Option-Command-M) A couple of days ago this stopped working and I can't figure out why. Is anyone else ...
0
votes
1answer
17 views

python script fails running as a daemon (EOFError: EOF when reading a line)

I've created a python3 script that runs fine on command line but when I try to run as a daemon in MacosX gives error 'EOFError: EOF when reading a line'. Basically code is as follows: (...) def ...
0
votes
0answers
26 views

How to make an app restart on quit in macOS

Question: what are some approaches to have an application restart whenever it quits? Premise: I have a background application, A, that runs nicely, but unexpectedly quits cleanly every now and then. ...
-1
votes
0answers
16 views

How to encrypt csv file for Windows Linux ans MacOs? [on hold]

I was wondering if there are some softwares that encrypt .csv on Windows and enable a decryption on Ubuntu. It would be amazing if this software works with MacOS as well. I found nothing until this ...
0
votes
0answers
11 views

what wrong with SecTaskLoadEntitlements failed error

let param = uploadObject do { return try req.make(Client.self) .post("https://up-z2.quiniup.com", headers: HTTPHeaders([("ContentType","multipart/form-data")]), ...
0
votes
0answers
6 views

launch path not accessible

I try to install this *.app in MacOS. If I double-click on it, I get the error "launch path not accessible". How can I solve this error? Is there any way to execute *.app from command line?
0
votes
0answers
12 views

Pynput not working if I start the daemon by launchctl on macOS

I use launchctl to start a daemon of my py code: launchctl load -w com.bruce2.PicUploaderHelper.plist Then I ps aux | grep testpynput, the daemon was launched: root 65334 0.1 0.2 ...
0
votes
0answers
30 views

How to use the monitor / mwait instructions in x86-64 assembly on Mac or baremetal

Originally I asked about umonitor and umwait, but it turns out as @harold suggested, that you can't even buy a processor that has those instructions yet. So this question is about monitor and mwait, ...
2
votes
0answers
25 views

A serial port receives the data problem in golang on macOS use tarm/serial

I successfully write Byte array to port but failed to read from it. function "read" return "read /dev/tty.usbserial1: interrupted system call" error, I running it on macOS sierra 10.12.6, use "github....
0
votes
1answer
69 views

Install pear on MacOS Mojave 10.14.3

I try to install pear: curl -O https://pear.php.net/go-pear.phar php -d detect_unicode=0 go-pear.phar And I get warning: PHP Warning: require_once(phar://go-pear.phar/PEAR/REST/13.php): ...
0
votes
0answers
13 views

clang enable optimize on a function / file, or, limit stack size; Apple kernel

So, when compiling kernel code, I have a function that when compiled without (at the very least) "-O" emits: "warning: stack frame size of 1080 bytes in function" and at its deepest, will overrun ...
0
votes
1answer
22 views

How to print signed integer in x86 assembly (NASM) on Mac

I found an implementation of unsigned integer conversion in x86 assembly, and I tried plugging it in but being new to assembly and not having a debugging env there yet, it's difficult to understand ...
0
votes
1answer
46 views

How to get length of long strings in x86 assembly to print on assertion

I am trying to build an x86 program that reads a file into memory. It uses a few different syscalls, and messes with memory and such. There's a lot in there to figure out. To simplify debugging and ...
3
votes
0answers
63 views

What is the cause of the hard limit on the directory nesting depth returned by getcwd on macOS and how can it be circumvented?

On linux and macOS, directories can be nested to seemingly arbitrary depth, as demonstrated by the following C program. However, on macOS but not on linux, there seems to be a hard limit on the ...
0
votes
0answers
9 views

Cannot permanently disable httpd on Mac 10.14 Mojave after upgrade

I'm running Mojave on a Mac Pro. Prior to this version of the OS I used Apple's Server app to manage Apache/httpd. Now I can't seem to permanently kill or stop httpd. Something keeps it alive and ...
1
vote
1answer
38 views

How to load C library functions into assembly, and use assembly library functions in another C or assembly project

Currently I am building a foo.h and foo.c with: $ clang -I . -dynamiclib \ -undefined dynamic_lookup \ -o foo.dylib foo.c I am able to use this in other C libraries like this: clang -I . -...
-2
votes
0answers
10 views

Ping system with multiple interfaces [on hold]

Setup: Host machine: OSX (macOS) Guest machine: Ubuntu (running inside vmware) Configuration: Enabled IPv4 and IPv6 forwarding on Ubuntu Added route on macOS: sudo route add -inet6 fd00::/64 -...

http://mssss.yulina-kosm.ru