OSX 10.11.1 - 编辑键盘-xx.plist 给出 "Operation not permitted"
OSX 10.11.1 - editing Keyboard-xx.plist gives "Operation not permitted"
我正在尝试编辑键盘布局,我正在 Operation not permitted
保存文件。
到目前为止,我已经尝试了一些没有成功的事情:
cd /System/Library/Input Methods/PressAndHold.app/Contents/Resources
sudo chmod u+w Keyboard-pl.plist
vim Keyboard-pl.plist
和
sudo chflags nouchg Keyboard-pl.plist
sudo chmod u+w Keyboard-pl.plist
vim Keyboard-pl.plist
知道如何编辑它吗?
事实上,在 El Captain 上,/System(和其他位置)下的文件受到保护。要对其进行编辑,您需要禁用保护:
To disable System Integrity Protection, you can do the following:
- Boot into the Recovery HD by restarting whilst holding
⌘R
.
- Open Terminal (from the Utilities menu).
Run the following command in Terminal:
csrutil disable
Restart.
此处来源:https://georgegarside.com/blog/osx/package-incompatible-installer/ and https://apple.stackexchange.com/questions/208911/the-keyboards-plists-of-pressandhold-also-can-no-longer-be-modified-to-add-the
我正在尝试编辑键盘布局,我正在 Operation not permitted
保存文件。
到目前为止,我已经尝试了一些没有成功的事情:
cd /System/Library/Input Methods/PressAndHold.app/Contents/Resources
sudo chmod u+w Keyboard-pl.plist
vim Keyboard-pl.plist
和
sudo chflags nouchg Keyboard-pl.plist
sudo chmod u+w Keyboard-pl.plist
vim Keyboard-pl.plist
知道如何编辑它吗?
事实上,在 El Captain 上,/System(和其他位置)下的文件受到保护。要对其进行编辑,您需要禁用保护:
To disable System Integrity Protection, you can do the following:
- Boot into the Recovery HD by restarting whilst holding
⌘R
.- Open Terminal (from the Utilities menu).
Run the following command in Terminal:
csrutil disable
Restart.
此处来源:https://georgegarside.com/blog/osx/package-incompatible-installer/ and https://apple.stackexchange.com/questions/208911/the-keyboards-plists-of-pressandhold-also-can-no-longer-be-modified-to-add-the