macos-mojave

gitk fails to launch on macOS 10.14 (Mojave)

…衆ロ難τιáo~ 提交于 2019-12-04 12:21:45
I get the following error when I try to run gitk on macOS Mojave (10.14.4): Error in startup script: file:///System/Library/ScriptingDefinitions/CocoaStandard.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd" <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/DTDs/sdef.dtd"> ^ file:///System/Library/PrivateFrameworks/FolderActionsKit.framework/Versions/A/Resources/FolderActions.sdef:2: I/O warning : failed to load external entity "file://localhost/System/Library/DTDs/sdef.dtd" <!DOCTYPE dictionary SYSTEM "file://localhost/System

Is there a way to install Valgrind on Catalina?

做~自己de王妃 提交于 2019-12-04 11:28:42
问题 Is there a way to install Valgrind on Catalina and have it run properly? If so, I would very much appreciate a step-by-step process. I tried installing Valgrind with https://github.com/sowson/valgrind but when I tested out helloWorld.cpp on the terminal, the console returned errors I should not have gotten. I'm not sure if I committed an error on my part in the installation process of this version of Valgrind or if Valgrind itself is simply incompatible with Catalina OS. I have also tried

Continuity Camera for macOS and iOS

家住魔仙堡 提交于 2019-12-04 09:58:44
问题 In macOS Mojave the continuity camera was introduced. Letting the user take pictures on the iPhone or iPad right into an application on the mac such as Notes, Messages, Keynote, Mail and TextEdit. Is this functionality available for third party developers. https://www.apple.com/macos/mojave/ Continuity Camera Take a photo right to your Mac. Now you can use your iPhone to shoot or scan a nearby object or document and have it automatically appear on your Mac. Just choose Insert a Photo from the

How to get the user set computer name using python in MacOS Sierra/High Sierra

China☆狼群 提交于 2019-12-04 09:56:01
The question below has partly been answered, see the Solution section below. So I'm posting this partly to help others and also since the solution I have hasn't really solved the problem yet. Question So, the question is why the hostname as given by the following techniques (using python's platform and socket libs) gives different host names depending on which router you are attached to and why its also different to the computer name and also local host name. This is very mac specific too by the way. Firstly, I am using a MacBook pro 2015 model with High Sierra 10.13.6. I use terminal and do

macOS Mojave 'ruby/config.h' file not found

蹲街弑〆低调 提交于 2019-12-04 08:15:16
When I try to build vim(8.1.0509) with ruby support(--enable-rubyinterp) on macOS Mojave(10.14.1) I get error: In file included from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby.h:33: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/include/ruby-2.3.0/ruby/ruby.h:24:10: fatal error: 'ruby/config.h' file not found #include "ruby/config.h" I have installed Xcode 10.1. xcode-select -p /Applications/Xcode.app/Contents/Developer Thanks P.S. See my answer on my question It explains why my problem is different from the problem with Xcode macOS Catalina

Mac Mojave + opengl

若如初见. 提交于 2019-12-03 23:59:29
Mac OS 10.14 Mojave was just released, and since June, we've known that OpenGL was to be deprecated in the OS. "OpenGL applications will continue to run, but you should switch to Metal," to paraphrase. However, there doesn't seem to be any documentation indicating whether you can still compile with OpenGL or if Apple prevents that or omits the proper development libraries. I am currently developing an OpenGL-based graphics program and cannot risk updating if compilation will no longer work. Has anyone tested this? EDIT: Does anyone else share Esenthel's experience? I can compile, however after

ntpdate command not found ? MacOS MOJAVE

梦想的初衷 提交于 2019-12-03 16:38:15
Hello I have a bash script who update the time of my mac but since the update of Majove the command isn't found: ntpdate -u time.apple.com return : ntpdate: command not found Where I going wrong ? Thanks to your reply It's a duplicate. Please check this stackoverflow question . TL;DR use sudo sntp -sS time.apple.com instead. For anyone trying to do this because their vm cannot connect to the update server while trying to install macos on a virtual machine, I switched my network adapter from NAT to bridged and the issue was resolved. 来源: https://stackoverflow.com/questions/52548093/ntpdate

Git: Error: Unable to read SDK settings for MacOSX.sdk

怎甘沉沦 提交于 2019-12-03 15:33:14
问题 Error while adding in git after updating to new OS Mojave Error git: error: unable to read SDK settings for '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk' Error faced in: Device: MacBook Pro (Retina, 13-inch, Early 2013) OS: MacOS Mojave Screenshot Question How to solve this error ? Anyones help will be really appriciated. 回答1: CommandLineTools is outdated. The below should fix it. xcode-select --install 回答2: Since I had just updated Xcode (using the AppStore) I had to open Xcode and

Cannot install any version of ruby on Mojave - internal ranlib command failed

社会主义新天地 提交于 2019-12-03 13:40:16
I know there are a few silimar issues to this one, but I cannot find one that matches my issue. I cannot install any version of ruby with either rvm nor rbenv. Both result in the same error. For example, here's an extract for the logs when installing ruby 2.5.3: compiling loadpath.c making srcs under enc linking static-library libruby.2.5.3-static.a make[1]: Nothing to be done for `srcs'. generating transdb.h /opt/local/bin/ranlib: object: libruby.2.5.3-static.a(dln.o) malformed object (unknown load command 1) ar: internal ranlib command failed make: *** [libruby.2.5.3-static.a] Error 1 make:

Repeated request for microphone permission on iOS Simulator

余生颓废 提交于 2019-12-03 10:57:31
I'm working with Xcode 10.1 (10B61) on an app that needs permission to use the microphone. (Almost) Every time I start the app from Xcode (in simulator) I get a system popup: "Appname" would like to access the microphone "Privacy - Microphone Usage Description""> It doesn't matter if I select "Don't Allow" or "OK". This message keeps popping up. How can I fix it? Update [fixed] This issue seems to be fixed in Xcode 10.2 👍 You can get rid of this following this steps: Go to "Security & Privacy" Settings on macOS. Select "Microphone" on the left panel. Uncheck the Xcode option on the right panel