-
Reboot in recovery mode (poweroff, hold Command + R and powerup)
-
Open terminal
-
Mount disk in write mode
mount -uw /
- Change current directory to your system root
cd /Volumes/<Your System HD Name>/
- Copy original file
cp ./usr/bin/codesign .
- Replace file with empty one:
echo "" > ./usr/bin/codesign
- Place new content using
vim:
vim ./usr/bin/codesign
content:
#!/bin/sh
echo "$@" >> /tmp/codesign.log
exit 0;
- Reboot and do what you need to do ;)
Repeat steps 1-4.
-
mv ./codesign ./usr/bin/codesign
-
Reboot