6.怎么使用mac自带的截图工具全屏截图:
全屏截图:
使用shift+command+3 ,会自动保存到桌面,不需自己去保存
部分截图:
使用shift+command+4,同样会自动保存到桌面
再扩展一下,如果想要把截图的内容保存到剪切板中,那就在上边的命令中加上ctrl就可以了
7.Mac上安装erlang报错,提示xcode路径错误
brew install erlang
xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
xcrun: error: active developer path ("/Volumes/Xcode/Xcode.app/Contents/Developer") does not exist, use `xcode-select --switch path/to/Xcode.app` to specify the Xcode that you wish to use for command line developer tools (or see `man xcode-select`)
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool
这种错误是因为xcode安装完后路径和默认的路径(/Volumes/Xcode/Xcode.app/Contents/Developer)导致的,使用xcode-select -switch修改xcode的路径就可以了
lizhiyongdeMacBook-Pro:~ lizhiyong$ xcode-select
xcode-select: error: no command option given
Usage: xcode-select [options]
Print or change the path to the active developer directory. This directory
controls which tools are used for the Xcode command line tools (for example,
xcodebuild) as well as the BSD development commands (such as cc and make).
Options:
-h, --help print this help message and exit
-p, --print-path print the path of the active developer directory
-s <path>, --switch <path> set the path for the active developer directory
--install open a dialog for installation of the command line developer tools
-v, --version print the xcode-select version
-r, --reset reset to the default command line tools path
lizhiyongdeMacBook-Pro:~ lizhiyong$ xcode-select -p
/Volumes/Xcode/Xcode.app/Contents/Developer
解决办法:
lizhiyongdeMacBook-Pro:Volumes lizhiyong$ sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Password:
然后再安装就没有问题了。
8.Mac上模拟鼠标右键
Mac上触摸屏和键盘上没有右键的操作,但是可以在触摸屏上模拟右键,只要用两个手指点触摸屏就可以了