Skip to main content

Posts

Showing posts from February, 2013

Updated list of my GNU Make articles

How to fix a corrupted JavaScriptCore.framework on Mac OS X 10.7.5

If /System/Library/Framework/JavaScriptCore.framework gets deleted or corrupted on Mac OS X you are in serious trouble. You can't run a browser, you can't start Preview, and more. But restoring it is possible.

To save anyone else the pain of figuring this stuff out here's how I got myself out of this situation. This blog post is boring until you have this problem and end up here because you searched for a solution. Welcome!

First you need to find the 'Client Combo' from Apple for your operating system. In my case that was the OS X Lion Update 10.7.5 (Client Combo). It contains a fresh copy of the JavaScriptCore.framework that just requires extracting and copying into place. Note that you can't just install the combo from the .dmg file because the Apple package manager relies on JavaScriptCore.framework. You have to do everything at the terminal.

Step 1. Download the combo and get it on your machine. For that you need to open Terminal (which you can get via Spo…