macos-mojave

minikube dashboard returns 503 error on macOS

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-30 03:00:44
I have recently installed minikube and VirtualBox on a new Mac using homebrew. I am following instructions from the official minikube tutorial . This is how I am starting the cluster - minikube start --vm-driver=hyperkit On running kubectl cluster-info I get this Kubernetes master is running at https://192.168.99.100:8443 CoreDNS is running at https://192.168.99.100:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'. Then I set the context of minikube kubectl config use-context minikube But when I run

How can dark mode be detected on macOS 10.14?

左心房为你撑大大i 提交于 2019-11-30 02:22:56
In macOS 10.14 users can choose to adopt a system-wide light or dark appearance and I need to adjust some colours manually depend of the current mode. Since the actual appearance object you usually get via effectiveAppearance is a composite appearance, asking for its name directly probably isn't a reliable solution. Asking for the currentAppearance usually isn't a good idea, either, as a view may be explicitly set to light mode or you want to know whether a view is light or dark outside of a drawRect: where you might get incorrect results after a mode switch. The solution I came up with looks

Button text of tkinter does not work in mojave

▼魔方 西西 提交于 2019-11-30 02:03:48
It is very simple program. import tkinter tkinter.Button(None, text='button').pack() tkinter.mainloop() I expect this program shows me such as a below picture. But it shows a below picture actually. When it is resized on GUI it seems working well. It didn't occur this problem in High Sierra. My environment is following: macOS Mojave 10.14 Python 3.7.0 Could you advice to me? I found out same problem on here . Changing Appearance to Light Mode fixed this problem for me. To change appearance, go to Settings -> General -> Appearance -> Light Mode. I also had this problem, 100% reproducible on my

Installing xdebug on MacOs Mojave - 'php.h' file not found

非 Y 不嫁゛ 提交于 2019-11-30 01:47:23
I try to install xdebug on MacOs Mojave but get this error /private/tmp/pear/install/xdebug/xdebug.c:25:10: fatal error: 'php.h' file not found Command Line Tools are installed. Steven I ran into this trying to compile xdebug on my system, I had to do the following to get it to work 1) (Re)install the command line tools (I had installed them at one point, but the files under /Library/Developer/CommandLineTools/ were missing so I must have deleted it...) xcode-select --install 2) Reinstall the header files sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for

macOS Mojave, Automator “Not authorized to send Apple events to System Events.”

邮差的信 提交于 2019-11-30 01:26:01
After I updated to Mojave, I can no longer use the automator service I've previously been using with the alert below. In Security & Privacy, I already checked AppleScript Editor. Do you see any problem with my code or is this the problem of the newest macOS? Script on run {input, parameters} set pathList to {} repeat with itemNum from 1 to count of input tell application "System Events" copy POSIX path of (container of (item itemNum of input)) to end of pathList end tell end repeat return pathList end run This is definitely a part of Mojave's new security framework. In terminal try osascript

iOS Simulator would like to access microphone every time

╄→гoц情女王★ 提交于 2019-11-30 00:19:45
Since the update to macOS Mojave, I get this alert every time I run on the simulator: "<AppName>" would like to access the microphone. It is stopping the simulator from running! How can I stop it? What worked for me was to change the Hardware Audio Input to Internal Microphone . What I believe happen is that when you give access it changes the audio input to your headphones or macbook. My concern was that I am watching a tutorial and it keeps changing the audio frequency and it kept bothering me. My app does not use microphone, it only plays videos. I was able to fix the alert popup by

macOS Mojave: How to achieve codesign to enable debugging (gdb)?

*爱你&永不变心* 提交于 2019-11-29 19:55:07
There are many topics floating around covering codesign issues with macOS, from 10.5 onward. What I wanted to achieve is, to get Geany working with the GNU Debugger (gdb). Debugger is found in geany, but the (already quite known) error message is: Error message from debugger back end: Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8)) Unable to find Mach task port for process-id 39847: (os/kern) failure (0x5).\n (please check gdb is codesigned - see taskgated(8)) Generally there are many restrictions to consider

Pybind11 doesn't work or C++ doesn't compile after upgrading to Mojave: -lstdc++ not found

旧巷老猫 提交于 2019-11-29 18:10:48
I was able to install the pybind11 example here before I upgraded my MacOS. However, after I upgraded my MacOS to Mojave, when I compile the same example on that link, I see the following error: clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9 [-Wdeprecated] ld: library not found for -lstdc++ clang: error: linker command failed with exit code 1 (use -v to see invocation) error: command 'g++' failed with exit status 1 Am I missing a linker command? I've searched online but couldn't find a solution. I actually found the answer. I only needed

Is there a way to toggle Dark Mode on/off for individual apps in MacOs Mojave?

佐手、 提交于 2019-11-29 17:19:44
Is there a way in Terminal to toggle Dark Mode On/Off for an individual app without affecting the rest of the environment? I use calendar on my Mac, and the appearance is dreadful. The rest of the apps look great in Dark Mode. I want to disable it JUST for that one app. From Terminal , run this command: defaults write com.apple.iCal NSRequiresAquaSystemAppearance true To revert the change: defaults write com.apple.iCal NSRequiresAquaSystemAppearance false 来源: https://stackoverflow.com/questions/52562383/is-there-a-way-to-toggle-dark-mode-on-off-for-individual-apps-in-macos-mojave

Unable to use PHPIZE after update to MacOS Mojave

依然范特西╮ 提交于 2019-11-29 01:23:18
What i should do when i run PHPIZE and get the error below ? I already installed xcode command line tools. grep: /usr/include/php/main/php.h: No such file or directory grep: /usr/include/php/Zend/zend_modules.h: No such file or directory grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory Configuring for: PHP Api Version: Zend Module Api No: Zend Extension Api No: Potential better solution - force reinstall the header files. Fixed a ton of problems for me system wide. Running the following command will reinstall the developer tools header files and should fix the issue. $