macos-mojave

minikube dashboard returns 503 error on macOS

本秂侑毒 提交于 2019-11-29 00:00:38
问题 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

How can dark mode be detected on macOS 10.14?

我们两清 提交于 2019-11-28 23:12:14
问题 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. 回答1: 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

iOS Simulator Crash on Xcode 10

耗尽温柔 提交于 2019-11-28 21:28:26
Today, I've updated my iMac to macOS Mojave from macOS High Sierra. Since then I'm not able to open simulator. Every time I tried to open the simulator that crashes immediately. Whenever I tried to run the simulator via Xcode then Xcode shows this error Timed out waiting for the simulator application for iphonesimulator to become ready Also, I tried to open the simulator directly and it's crash immediately. Here the gif (gif is a little bit slow) - System CPU & Memory Status - Here some solution that I've tried but no luck - Clear iPhone Simulator Cache xcrun simctl erase all Clear DerivedData

Brew install on Mojave

假装没事ソ 提交于 2019-11-28 18:57:40
I did these steps: Updated to Mojave Installed Xcode 10 beta3 Ran this command: sudo xcode-select -switch /Applications/Xcode-beta.app/ Now I'm trying to install node8: brew install node@8 And it gives me this error: Error: The Command Line Tools header package must be installed on Mojave. The installer is located at: /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg Still, doing install -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg does nothing, since there's no such file in my system. Where could I get it? Go to

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

戏子无情 提交于 2019-11-28 15:33:30
问题 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

NSCameraUsageDescription needed for C++ projects in Xcode for MacOS Mojave

懵懂的女人 提交于 2019-11-28 11:25:11
I am trying to run OpenCV projects in Xcode and it seems like there's a new need to provide an info.plist for C++ applications NSCameraUsageDescription. 2018-09-28 00:03:15.181948+0800 k_nearest_detector_v2[23505:710470] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data. Program ended with exit code: 9 How do I go about creating a .plist file for a C++ project as it has never been needed before.

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

别来无恙 提交于 2019-11-28 05:57:50
问题 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. 回答1: 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

GDB errors on macOS Mojave

一曲冷凌霜 提交于 2019-11-28 01:45:03
Environment: Mac/Mojave and GDB 8.2.1 (via homebrew). I worked through instructions https://forward-in-code.blogspot.com/2018/11/mojave-vs-gdb.html i.e.: latest GDB via brew, which solves the executable format issue sign GDB with new entitlements Additionally, I've also modified SIP to allow debugging (in Recovery OS terminal: csrutil enable --without debug ). However, I still can’t get gdb to work: (gdb) file main Reading symbols from main...done. (gdb) run Starting program: /Users/joubertold/code/Rhodus/obj/debug/main [New Thread 0x1a03 of process 5082] [New Thread 0x2803 of process 5082]

OpenCV Python Scripts Mac “aborts”

自古美人都是妖i 提交于 2019-11-28 01:36:24
So I'm just trying to run the basic OpenCV program import numpy as np import cv2 cap = cv2.VideoCapture(0) while(True): # Capture frame-by-frame ret, frame = cap.read() # Our operations on the frame come here gray = cv2.cvtColor(frame, cv2.COLOR_BGR2BGRA) # Display the resulting frame cv2.imshow('frame',frame) if cv2.waitKey(1) & 0xFF == ord('q'): break # When everything done, release the capture cap.release() cv2.destroyAllWindows() But for some reason when I try to run it (with python 2 or 3) I get this weird abort statement [1] 74309 abort python3 index.py (I'm guessing the 5 digit number

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

 ̄綄美尐妖づ 提交于 2019-11-27 12:17:03
问题 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. 回答1: 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