mac笔记5

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上触摸屏和键盘上没有右键的操作,但是可以在触摸屏上模拟右键,只要用两个手指点触摸屏就可以了


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值