关闭Xcode
一.进入https://github.com/inket/update_xcode_plugins下载
二.打开终端,输入sudo gem install update_xcode_plugins
遇到的问题1:
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 file2
install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
[-o owner] file1 ... fileN directory
install -d [-v] [-g group] [-m mode] [-o owner] directory ...
遇到的问题2:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
以上两个问题的原因:没有输入 sudo gem正确的输入方式是:sudo gem install update_xcode_plugins
遇到的问题3:
ERROR: While executing gem ... (Errno::EPERM)
Operation not permitted - /usr/bin/term_cdiff
正确输入:sudo gem install -n /usr/local/bin update_xcode_plugins
输入第2条之后会输入开机密码
打开Xcode8.0可以看到熟悉的 package manager