macos-sierra

Jenkins does not start on macOS 10.12 (Sierra)

試著忘記壹切 提交于 2019-12-03 05:46:55
问题 After upgrading my macOS to Sierra, when I start Jenkins using launchctl load I cannot connect to localhost:8080. If I call launchctl load again, I see response "service already loaded". There is no log file at the default location /var/log/jenkins/ (as set in jenkins-ci.plist). I also tried to create jenkins.log there and chown to jenkins user, but still nothing is printed there. If I try to start Jenkins using java -jar jenkins.war, I can connect to localhost, but Jenkins runs as a new

macOS Sierra - how to enable “Allow Remote Automation” using command line

China☆狼群 提交于 2019-12-03 04:45:58
I am working on an automation stuff in macOS Sierra (10.12.2). By using python's atomac support I can launch the safari browser and make the settings enabled via Safari -> Preferences -> Advanced -> check "enable Develop Menu" and then select "Develop -> Allow Remote Automation". Looks like this is not so consistent for automation perspective. I would like to know if there is any shell command to make this possible. Montmons Hmm ok, so as per my comment: You could do defaults write com.apple.Safari IncludeDevelopMenu YES to activate the development menu via terminal. You could get python to

Installing pip on macOS Sierra

痴心易碎 提交于 2019-12-03 04:25:11
问题 I've been trying to install pip on macOS sierra via brew, but every time it completes without installing the binaries in /usr/local/Cellar/python/2.7.13/bin . I've tried: MacBook-Pro ➜ brew reinstall python then: MacBook-Pro ➜ ~ which pip pip not found I found the path to python, which is /usr/local/Cellar/python/2.7.13/bin but no binary for pip there. I also tried the easy_install approach: MacBook-Pro ➜ sudo easy_install pip Traceback (most recent call last): File "/usr/bin/easy_install-2.7

Clipboard failure in tmux + vim after upgrading to MacOS Sierra

拟墨画扇 提交于 2019-12-03 03:29:22
问题 Yesterday, I upgraded to MacOS Sierra and it broke my clipboard functionality in my tmux + neovim setup. Here is the behavior: I can use the standard ctrl+c, ctrl+p to copy/paste between system <-> vim I can yank/paste between two VIM instances when NOT in a tmux session I cannot yank/paste between two VIM instances when in a tmux session Whenever I use the clipboard in vim within a tmux session, I get the following vim error: clipboard: error: My .vimrc is huge, but here's what I think might

MySQL Compatibility with MacOS Sierra

天大地大妈咪最大 提交于 2019-12-03 03:05:11
问题 Does anybody know of any compatibility issues or quirks with MySQL Community Server/Workbench on macOS Sierra? I recently did an installation on a Mac that had never held MySQL before and it doesn't seem to be working correctly. (Now maybe I just set it up wrong, but the since the installer offers no advanced options that doesn't seem to be the case.) I can create schemas and tables, but when I go to actually query the table nothing happens. The activity indicator spins endlessly. I took a

.ssh/config: “Bad configuration option: UseKeychain” on Mac OS Sierra 10.12.6

会有一股神秘感。 提交于 2019-12-03 02:59:12
问题 I am trying to set up my ssh config on the Mac (Mac OS Sierra 10.12.6) in such a way that it stores the passphrase for my ssh key in the keychain. Previously I could do that with ssh-add -K ~/.ssh/id_rsa But recently this doesn't seem to work anymore. Following this article there seems to be a change in the behaviour of the ssh config in Mac OS > 10.12.2 and the recommended way to fix this issue is to add UseKeychain yes to your ssh config. So here's my .ssh/config section the Host * : Host *

How to extract xip archive using command line?

放肆的年华 提交于 2019-12-03 01:02:56
I searched around how to extract XIP archive using command line with no luck so I am leaving my own solution, as a bash function, here. I found my inspiration here . function unxip() { [ -z "$1" ] && echo "usage: unxip /path/to/archive.xip" && return # http://newosxbook.com/src.jl?tree=listings&file=pbzx.c PBZX="/usr/local/src/pbzx/pbzx" && [ ! -x "$PBZX" ] && echo "$PBZX not found." && return [ ! -f "$1" ] && echo "$1 not found." && return [ -f "Content" ] || [ -f "Metadata" ] && echo "Content or Metadata already exists." && return pkgutil --check-signature "$1" && xar -xf "$1" && "$PBZX"

Apache Localhost 403 Forbidden with macOS Sierra [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-02 22:02:30
macOS Sierra update made my Apache's localhost inaccessible. Well, only localhost/ is accessible. But sub-folders under localhost/<other-directory>/ are NOT . How to fix it? Muel Please check /private/etc/apache2/extra/httpd-userdir.conf file. change #Include /private/etc/apache2/users/*.conf to Include /private/etc/apache2/users/*.conf and restart apache. Here's the steps I followed to fix this: Go to /private/etc/apache2 Open httpd.conf.bak, copy the contents, overwrite httpd.conf with it then save In httpd.conf, change Options FollowSymLinks Multiviews to Options FollowSymLinks Multiviews

Cocoa App webview not loading request

会有一股神秘感。 提交于 2019-12-02 20:40:17
I have used webview to load url but it is not loaded. i have tried the same with wkwebview but couldn't load url. I have done following import WebKit Info.plist Allow Arbitrary Loads - YES Allow Arbitrary Loads in Web Content - YES LOG: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1 dnssd_clientstub ConnectToServer: connect()-> No of tries: 2 dnssd_clientstub ConnectToServer: connect()-> No of tries: 3 dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:11 Err:-1 Errno:1 Operation not permitted nw_resolver_create_dns_service_locked

Will Xcode 7.3.1 work on macOS 10.12?

别等时光非礼了梦想. 提交于 2019-12-02 20:27:27
I want to install and try out the new features of macOS 10.12. Also I really want to work on Xcode 8.0. But the same time I have some client projects which should written on Swift 2.2 [ Xcode 7.3.1 ], I don't want use Swift 2.3 or Swift 3.0. So is it possible to install Xcode 7.3.1 in macOS 10.12? Is there any hacky way to do this? Yes I have successfully installed both Xcode 7.3.1 and Xcode 8.0 in my macOS Sierra . Now using both Xcodes. But whenever I run my project using Xcode 7.3.1 I am getting this error DTAssetProviderService could not start DTXConnection with Simulator 'iPhone 6s'.