Questions tagged [macos]

43643 questions
1

votes
0

answer
63

Views

Same command to copy directory in Windows as well as Mac

I want same command to copy directory in Windows as well as Mac. I don't want two different commands cp in terminal in Mac and xcopy in PowerShell in Windows. Is there a single command which can used in both Mac and Windows without any changes?
user43286
1

votes
0

answer
173

Views

Unknown Error = -2,147,414,007 when trying to make a certificate to use GDB

When I try to make a certificate to use GDB in Keychain Access on my Mac I get Unknown Error = -2,147,414,007 when I create the certificate.
Sean Brady
1

votes
0

answer
208

Views

How can I resolve this error from Jenkins?

I'm new to macOS. I have installed latest Jenkins LTS (2.89.2) on my machine. Now I'm getting this message on the Jenkins home URL: A problem occurred while processing the request. Please check our bug tracker to see if a similar problem has already been reported. If it is already reported, please v...
Rajasekar
1

votes
1

answer
35

Views

How to set up Idea under MacOs

I downloaded Idea EAP 2017.3 Ultimate for Mac OS, with a bundled jre. Once I cloned my gradle project, I tried to sync but it was complaining that there was no project SDK. I tried to add the bundled jre under /Applications/IntelliJ IDEA.app/Contents/jdk/Contents/Home but it always complained it was...
elect
1

votes
0

answer
98

Views

IOBluetooth Mouse Battery Level

Is it possible to read battery levels from a Bluetooth mouse (Magic Mouse 2 in this case), using the IOBluetooth framework? Would this require writing a request as data through a L2CAP or RFCOMM channel? I got as far as reading the SDP service records, but am not sure how to proceed.
comfortablejohn
1

votes
1

answer
441

Views

Sandbox & WKWebView loadFileURL(_, allowingReadAccessTo:) Inconsistency

Using the new shiny WKWebView and sandbox on os/x, require some intervening reset or clear as subsequent calls to load a file URL will be ignored; this is somewhat related to an earlier question on WKWebView loadFileURL works only once - ios there, here on os/X I do if loadURL.isFileURL { webView.l...
slashlos
1

votes
1

answer
49

Views

Building Poco libraries with legacy MacOs SDK

I updated Xcode and it also updated MacOS SDK. I need to build Poco with older SDK to support older MacOS versions. I want to build with MacOS version 10.11. I've downloaded the legacy MacOs SDK and want to give the path to it with some kind of a flag. My build command looks as follows: ./configure...
IndrekV
1

votes
0

answer
20

Views

Terminal outputting escape sequences

I've been using Terminal in macOS 10.12.3 to compile Sass to CSS and have been having a helluva time trying to figure out why the terminal's output is printed out with the literal escape sequences. When errors come up, it's difficult to read the output of what went wrong with all the /n's and /t's c...
fauxkno
1

votes
0

answer
64

Views

Clang exception capturing not working correctly

I'm using the clang x64 compiler on MacOS 10.12. I have the following code: try { throw CryptoPP::Exception(CryptoPP::Exception::OTHER_ERROR, 'test'); } catch(CryptoPP::Exception &e) { std::cout
Felix
1

votes
2

answer
126

Views

Drawing a simple line on a JPEG image

I'm stuck again with an apparently simple question. I loaded a JPEG file into a CGImage. I got the correct values for width and height (in pixels) and was able to show 'myImage' in a ImageView Controller. But I wanted to add some graphics on this image and found that I should instead get it into a N...
user8889350
1

votes
0

answer
378

Views

MacOS Dnsmasq High Sierra 403 Forbidden error

I tried to configure dnsmasq with a fresh clean macOS High Sierra 10.13.2 Apache Version Server version: Apache/2.4.28 (Unix) Server built: Oct 9 2017 19:54:20 apachectl configtest Syntax OK I used to have it and worked fine. But I think I'm missing something, because I'm getting 403 forbidden er...
Absolutkarlos
1

votes
1

answer
411

Views

chown: changing ownership of '/u01/app/oracle': Operation not permitted

I am using Docker (Community edition, Version 17.09.1-ce-mac42 (21090), 3176a6af01). For webapp development, I need Oracle 12c (and I need saving my works (database table, view, data, etc.) after close Docker application), therefore I use https://github.com/MaksymBilenko/docker-oracle-12c I do these...
Do Nhu Vy
1

votes
0

answer
47

Views

Sandbox and Finder alias

I'm trying to create a security scoped URL for a user provide file which happens to be an alias using this methods which uses a resolvedFinderAlias() method: func storeBookmark(url: URL) -> Bool { // Resolve alias before storing bookmark let origURL = (url as NSURL).resolvedFinderAlias() // Peek t...
slashlos
1

votes
0

answer
49

Views

How to manage the iCloud Document of MAC App

The documents provided by APPLE did not make it clear to me. This may be my English level limit. I hope you can help me to get a better understanding of it. I use the FileManager class to manage the files of icloud, including the methods of copyItem, moveItem, and removeItem. I directly deal with th...
Diven Lee
1

votes
1

answer
29

Views

Add langmap and keymap to vim in mac

The following outputs when I run: vim --version VIM -Vi IMproved 8.0 ... Included patches: 1-503, 505-642 Compiled by [email protected] Normal version without GUI. Features included (+) or not (-): ... - langmap - keymap ... As a result I can't use set langmap=.... How do I add this feature to the...
donlan
0

votes
0

answer
3

Views

How do I install Dotfuscator in Visual Studio for Mac?

I'm currently using MacOS for my C# development environment, and have been pretty satisfied with the packages available. However, since my codebase is proprietary, my coworkers recommended that I obfuscate the code using Dotfuscator. I've gone over the Microsoft documentation for direct installation...
James
1

votes
0

answer
9

Views

Is Mac System Integrity Protection defined within the sys/stat.h

I've done some hunting around on the internet and have not found a good way of programmatically determining if a given file has integrity detection turned on. I noticed that, unlike most linux headers I have run across, Darwin doesn't define their st_mode bits in the stat struct defined in /sys/st...
mreff555
1

votes
1

answer
55

Views

ITLibrary gives me nothing but (null)

My program automates a radio station. There is lots of communication back and forth between it and iTunes. I programmed it with scripting bridge. Scripting bridge suffers from memory leaks. Each call to scripting bridge leaks a small amount of memory. Add a lot of calls to a program that runs 24/7 a...
Irv Heller
1

votes
0

answer
407

Views

macOS High Sierra Edit Kext

A while ago I was digging around in the kexts provided with macOS High Sierra, specifically AppleHDA.kext. The audio driver appears to implement a DSP chain with some rather complicated signal processing going on. In particular, there is a great deal of dynamic range compression applied to the outpu...
Larry Chen
1

votes
2

answer
423

Views

How do I record a specific application running on my Mac using ffmpeg?

I just installed ffmpeg with using home-brew on Mac HighSierra. I want to record the contents (video only is fine) of an application running on my machine (as opposed to my entire Desktop). So I tried running the below davea$ ffmpeg -f gdigrab -framerate 25 -i title=DOSBox ffmpeg version 3.4.1 Cop...
Dave
1

votes
0

answer
55

Views

Retrieve application path on macos, for both bundles and standalones (C++)

I need to get the file path of a C++ application on Mac OS Sierra +. The application could be either a .app bundle (in which case I need the path to the bundle and not the inner executable), or could be a standalone executable. Is there a standard C++ way to handle both these cases? Right now, I ob...
anik3th
1

votes
0

answer
26

Views

How to remove OS X Extensions from System Preference?

In Mac OS X we have Extensions in System Preferences they are used for Finder & Share. I uninstall the apps but it still remains. How can I remove it once the application is uninstalled? There must be some settings in some file where it is stored, someone please help to know its location. I am usin...
Anoop Vaidya
1

votes
0

answer
103

Views

vim install from source fails in macOS high sierra

I recently upgraded from 10.9 to 10.13 and had to reinstall vim. I checked out vim from source and did the following: $/source-pkgs/vim>./configure --with-features=huge - -enable-multibyte --enable-rubyinterp=yes --enable-pythoninterp=yes --with- python-config-dir=/usr/lib/python2.7/config --enable-...
A.D
1

votes
0

answer
314

Views

Pygame Display.Update() Fix?

When programming in Python 3, using Pygame, there is a problem with updating portions of the screen on Mac OS. For example: import pygame screen=pygame.display.set_mode((200,200)) screen.fill((100,100,100)) pygame.display.update(0,0,100,200) This should display a screen half grey and half white, how...
PatrickHume31
1

votes
0

answer
347

Views

Source activation for anaconda python environments no longer working (Mac)

The source activate command in conda is suddenly no longer working for me. When I type source activate py3 in my Mac terminal, I get this error -bash: _conda_activate: command not found. I recently created a new conda environment for TabPy (Tableau python server); I'm not sure if that changed anythi...
Kristie
1

votes
0

answer
665

Views

Run app on iOS device in Visual Studio for Mac

I have problem with running my iOS app (Monogame) on my physical iPhone X device in Visual Studio for Mac (former Xamarin Studio). I can test it in emulator, but I don't see option for physical device in list of devices. If I try to create an app in Xcode there is that option. I have connected my i...
Earlgray
1

votes
1

answer
252

Views

how to trim audio file with specific time from text file by using SoX in Mac terminal?

I have a text file looks like this text file ,and I want to use sox to trim the audio file based on the time in the text file, so I can have different audio clips from 0.0 to 6.16, 6.16 to 13.44, 13.44 to 17.54 etc.. I understand the basic script for sox trim is *$ sox audio.wav newaudio.wav trim s...
Bruce Wang
1

votes
0

answer
124

Views

Ionic Android build failing using Jenkins

I am trying to create a CI/CD flow using Jenkins to build and hopefully deploy the Android app after. I have Jenkins using the script to inject the node dependencies and start to use ionic cli commands. I'm having an issue though that Jenkins isn't seeing my ANDROID path. I do indeed have it set up...
SmiffyKmc
1

votes
0

answer
161

Views

How to setup WebRTC AEC on pjsua2 (C++)

I'm struggling with AEC setup on pjsua2. I've setted this already: epCfg_.medConfig.noVad=true; epCfg_.medConfig.ecTailLen=30; epCfg_.medConfig.ecOptions=PJMEDIA_ECHO_WEBRTC|PJMEDIA_ECHO_USE_NOISE_SUPPRESSOR|PJMEDIA_ECHO_AGGRESSIVENESS_AGGRESSIVE; But I'm still getting a really noisy Larsen effect w...
csguth
1

votes
1

answer
359

Views

WKWebKit does not refresh webpage

I am using Xcode 8.3.3 and Swift 3 to develop an app for the iMac using Cocoa. My goal is to use VCgoToWebPage and display a webpage to the user. My program calls this function many times, but the only webpage I see is the last one called. How do I implement a window refresh inside this function and...
TurboPascal
1

votes
1

answer
68

Views

Peripheral state never changes after CBPeripheralStateDisconnecting state on mac osx 10.13 CoreBluetooth framework

I have updated macOS to High sierra and Xcode to 9.2. I am working on BLE device connection / disconnection and reading data. It was was working fine in Xcode 8.2, Now there are changes in CoreBluetooth framework. A new state CBPeripheralStateDisconnecting is added in peripheral state. Now, I need...
user8154740
1

votes
0

answer
28

Views

Drag file into the NSTextView, show one warning dialog

ALL: I have one NStextView and when I drag one '.mp4' file into the TextView, a warning dialog will be shown: Do you really want to copy the contents of the dragged items into the text? How can I block this warning dialog? Any suggestion will be appreciated!
stream hu
1

votes
0

answer
100

Views

Execution error while trying to run Fiddler for mac

I've installed fiddler for mac and the mono framework. I also followed the install instructions pdf included in the download While running $ mono --arch=32 Fiddler.exe I get Thunderbolt /Users/XXX/dev/fiddler-mac/FiddlerAttach.applescript:7:87: execution error: /bin/sh: Ethernet,127.0.0.1,8888,on,1...
demiurg
1

votes
0

answer
161

Views

Issue with php file_get_contents() in xampp running on Mac OS X

I wrote a PHP script which reads all JSON files in a directory. It processes the contents and creates a different array with required values. The script is called from AJAX with the returned value, and a CSV is created by JavaScript, which is downloaded on the client's computer. It is working fine o...
Debopam Parua
1

votes
1

answer
27

Views

NetBeans: Use environment from .bash_profile when running Maven commands

I have a .bash_profile with environment variables I want my IDE, NetBeans, to see during execution but doesn't seem to work. Any hints on how to get the IDE to see this?
javydreamercsw
1

votes
0

answer
239

Views

after clone: npm install produces different package-lock file

I'm using npm 5.6.0 and node v6.9.5 on OSX El Capitan 10.11.6. Scenario: I have a nodejs project where a package-lock.json is created after every npm install as expected. The project, including the package-lock.json, is checked into a repository and afterwards cloned into a different location (same...
hajn
1

votes
0

answer
366

Views

Run Java Program in Terminal from Sublime Text 3 [Mac OS]

What build system in Sublime Text 3 would you have to use to run java programs in the given Mac terminal (the one that appears when you use Spotlight, shell is called bash I think.)? Below is the code I am currently using, I have tried a bunch of changes, but I can only get the terminal to open up,...
fawrgoring
1

votes
1

answer
164

Views

Bash missing all shell commands

I'm trying to convert by boyfriend's old computer into a development environment because mine broke and I can't afford a new one, but it seems to be missing damn near every shell command I'm used to. It doesn't have ls even! The help command gives me this: bash-4.4$ help GNU bash, version 4.4.12(1)...
Andrea McKenzie
1

votes
0

answer
26

Views

Mac development support multi mailbox sending mail

I'm doing Mac development and I need to handle a mail feedback problem within the App function. We now only support a built-in Mail mailbox feedback system, but sometimes the user default mailbox is not Mail mailbox, it will lead to users unable to send mail. How do we get the default mailbox users...
lslboy
1

votes
0

answer
91

Views

Jupyter fails to start Python 3 kernel after a conda environment was removed

I just removed a conda created environment (nltk) and now my iPython kernel is stuck on the removed conda environment. Every time, I launch jupter notebook, the kernel fails to start and pops up with this error: FileNotFoundError: [Errno 2] No such file or directory: '/Users/mysterio/anaconda3/envs/...
Mysterio

View additional questions