See my blog why this script has been created.
- macOS Sequoia installed on a a MacBook Pro (model 8,1) using OCLP 2.4.1
- A clean
screencapturebinary from macOS Squoia 15.7.1 - SIP disabled (use OCLP to disable it)
- this script
Tip
When booted into a macOS installer or Recovery Mode, you can access the screencapture binary via the Terminal, often located at /Volumes/Macintosh\ HD/usr/sbin/screencapture if the main drive is mounted, or by copying it from a running system.
Caution
Use at your own risk. This script modifies system files located in /usr/sbin. While this fix has been tested on MacBookPro8,1 running macOS Sequoia via OCLP, always ensure you have a current backup of your data before modifying system-level binaries. The author is not responsible for any system instability or data loss.
To fix a broken screencapture on an OCLP patched MacBookPro8,1 disable SIP at the OCLP if not done yet (build and install OpenCore to the internal drive) and after that simply run
% sudo ./screencapture-fix.sh
The script replaces /usr/sbin/screencapture with the binary located in the same folder as the script.
Reapplying OCLP root patches in the future would likely overwrite the fix.
Run the script as often as need.