Fixing the Mac App Store

If you’re a Mac developer and had been using the previously-available build of OS X 10.6.6, you may be having a few problems related to the Mac App Store after installing the final build.

Personally, no amount of restarting, relaunching, deleting preference files or cursing managed to get me anything other than the following console message upon clicking ‘Sign In’ (either in the main window or the menu):

App Store[350] Could not connect the action createNewAccount: to target of class CKSignInPrompt

After some digging, it appears this is due to a bug in CommerceKit, of which CKSignInPrompt is a part. The fix is relatively simple. First, grab the final version of 10.6.6 from Apple’s Support site. Next, unpack the resulting .pkg file using unpkg or similar. Lastly, open up a Terminal window and type the following:

sudo rm -rf /System/Library/PrivateFrameworks/CommerceKit.framework
sudo cp -R /full/path/to/unpacked/pkg/file/CommerceKit.framework/ /System/Library/PrivateFrameworks/CommerceKit.framework/ 

Restart, et voila!