I updated safari to 11.1 yesterday and ever since it has been popping up the same message "SafariBookmarksSyncAgent quit unexpectedly" and it just continues to come back. I cant open Safari either because "Safari cannot be opened because of a problem".
I get following error in the log for both the Safari app and SafariBookmarksSyncAgent:
Library not loaded:
/System/Library/PrivateFrameworks/Safari.framework/Versions/A/SafariReferenced from:
/System/Library/CoreServices/SafariSupport.bundle/Contents/MacOS/SafariBookmarksSyncAgent
Reason: no suitable image found.Did find:
/System/Library/StagedFrameworks/Safari/Safari.framework/Versions/A/Safari:
code signature invalid for
'/System/Library/StagedFrameworks/Safari/Safari.framework/Versions/A/Safari'/System/Library/StagedFrameworks/Safari/Safari.framework/Versions/A/Safari:
code signature invalid for
'/System/Library/StagedFrameworks/Safari/Safari.framework/Versions/A/Safari'
Best Answer
What ended up working for me was restarting the computer in safe mode.
Here's an explanation from an apple discussions post.
From: https://discussions.apple.com/thread/7069199