#MacOS Sierra
[TOC]
macOS Sierra 因为增强了GateKeeper的安全性,所以“允许任何来源的应用”选项被隐藏,目的在于避免除Mac AppStore和正规签名外的未知或未签名App在系统内被任意执行,从而威胁用户隐私和系统安全。但这也造成了很多不便。关闭方法:在终端中输入命令sudo spctl --master-disable,验证口令后即可。
sudo gem update -n /usr/local/bin --system
##command line tools
apple develop中心提供了直接安装command line tools的方法:
xcode-select --install
Error: /usr/local is not writable. You should change the ownership and permissions of /usr/local back to your user account: sudo chown -R $(whoami) /usr/local
##Xcode8注释问题
sudo /usr/libexec/xpccachectl
然后重启电脑
