macOS Sierra 安裝 Daoban 軟件不再提供選項(xiàng)
Allow applications downloaded from: Anywhere
哪尼牲平。。
只好再get新技能:
xattr -rc /Applications/<faulty application>.app
大致看了下命令xattr 是修改文件的擴(kuò)展屬性,-rc為循環(huán)刪除胰锌。
不明白mac對軟件來源是怎么識別驗(yàn)證的藐窄,先記下吧。
$ xattr -h
usage: xattr [-l] [-r] [-s] [-v] [-x] file [file ...]
xattr -p [-l] [-r] [-s] [-v] [-x] attr_name file [file ...]
xattr -w [-r] [-s] [-x] attr_name attr_value file [file ...]
xattr -d [-r] [-s] attr_name file [file ...]
xattr -c [-r] [-s] file [file ...]
The first form lists the names of all xattrs on the given file(s).
The second form (-p) prints the value of the xattr attr_name.
The third form (-w) sets the value of the xattr attr_name to the string attr_value.
The fourth form (-d) deletes the xattr attr_name.
The fifth form (-c) deletes (clears) all xattrs.
options:
-h: print this help
-l: print long format (attr_name: attr_value and hex output has offsets and
ascii representation)
-r: act recursively
-s: act on the symbolic link itself rather than what the link points to
-v: also print filename (automatic with -r and with multiple files)
-x: attr_value is represented as a hex string for input and output