Tested on operating systems Catalina, BigSur and Monterey. Please, read all answer because there are updates.
Today I solved this using macOS Monterey at an old MBP mid 2012 (yes, MBP 2012 with Monterey ) and Safari 16.1, I thing that you can try for another MacOS versions with few adjustments.
BACKUP your system before try this and IF you are a noobie or rookie and don't understand what I wrote below, please stop here!
First of all, you MUST download a safari installer, I recommend your start for here https://mrmacintosh.com/macos-safari-full-installer-database-download-directly-from-apple/.
Go to ADMIN account at Mac (you must be at this account, usually it account created during first installation).
STOP all safari processes using activity monitor (search for safari processes, usually 5 processes are running).
At finder or a terminal window search for directories:
/Library/Apple/System/Library/StageFrameworks/Safari
/Library/Apple/System/Library/Assistant/Plugins/Safari.assistantBundle
Delete them!
Search for files at /Library/Apple/System/Library/Receipts/
- com.apple.pkg.Safari16.0MontereyAuto.bom
- com.apple.pkg.Safari16.0MontereyAuto.plist
- com.apple.pkg.Safari16.1MontereyAutoSeed.bom
- com.apple.pkg.Safari16.1MontereyAutoSeed.plist
- com.apple.pkg.Safari16.1MontereySeed.bom
- com.apple.pkg.Safari16.1MontereySeed.plist
- com.apple.pkg.SafariTechPreview.bom
- com.apple.pkg.SafariTechPreview.plist
The files can be different because it depends on your Safari versions installed or updated. Delete all files like this!
Now, you can reinstall your downloaded Safari!
I hope this helps you.
If you are using OpenCore Legacy Patcher, please check UPDATE 3 before attempting the steps above.
UPDATE 1:
After first reply, now I included a website to download safari and indicated where the directories and files are located. Thx, Andy Griffiths to request this.
UPDATE 2:
Sometimes steps above will not working. In this cases, unfortunately, you need put your MacOS installer at the Application folders and then start reinstall process. It's annoying, tedious and frustrating, but you don't lost your files, only waste your time and Safari will working again! After all, don't try update Safari if Update Software recommends.
UPDATE 3 (IN 2023): The error occurred after updating iMac late 2012 to Monterey (12.6.6) and updating Safari (16.5) using OpenCore Legacy Patcher. I solved the issue. Please try the following steps:
- Open OpenCore.
- Click on "Post Install Root Patch".
- Then, click on "Revert Root Patches".
- Reboot your system.
- Open OpenCore again.
- Click on "Post Install Root Patch" once more.
- Finally, click on "Reinstall Root Patches".
- Reboot your system again.
StagedFrameworks/Safari
.