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:

  1. Boot into the Recovery HD by restarting whilst holding ⌘R.
  2. Open Terminal (from the Utilities menu).
  3. Run the following command in Terminal:

    csrutil disable

  4. 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