Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

XCode fails to open on my machine - OS X 10.8.2. It opens the main screen and just hangs there with the spinner spinning becoming unresponsive. If I double clcik a project, it just hangs sating it is loading.

I tried:

  1. Uninstalling and re-installing;
  2. Removing my project tree;
  3. Deleting some recommended preferences, most of which did not actually exist on my machine to begin with.

Things of note:

  1. This is a new computer. The first time I ran XCode, it opened fine, though I didn't try using it. The problem appeared when I first opened an existing project.
  2. I created a new user on the machine. When that user is logged on XCode loads successfully. Apparently it is a user settings issue.
share|improve this question
For user settings look in ~/Library/Preferences and look for anything with Xcode in - try deleting them – Mark Mar 19 '13 at 21:56
The irony - a developer tool hanging. You could always run sysdiagnose on Xcode and submit a bug report to Apple :) – bmike Mar 20 '13 at 4:15
@Mark, I tried that. No avail. – Adi Shavit Apr 4 '13 at 11:33
You need to unhidden files first then try this :… – user66483 Jan 5 '14 at 8:57
@bmike - Xcode is without any doubt the worse piece of software Apple ever wrote. Xcode was always bad but things escalated with Xcode 4. It is a shame that they continue to cram crap to the app instead of fixing errors that are there since Xcode 4. I need to hire someone to invent new profanities to me because I have used my repertoire. – SpaceDog Sep 29 '14 at 22:44

Removing the ~/Library/Saved Application State/ might help as well.

share|improve this answer
Genius. You saved my day. Thanks. – kl94 Apr 9 '15 at 15:06
this did the trick on xcode 6.3. Thanks! – dreampowder Apr 14 '15 at 14:38
up vote 8 down vote accepted

No need to reinstall XCode.

Based on this:

  1. I deleted all XCode related "Unsaved Docs" docs found via the Finder search;
  2. I removed the ~/Library/Developer folder;
  3. Emptied the trash.

This worked for me.

share|improve this answer

A slightly improved answer:

I didn't need to reinstall xCode at all, just remove the 'unsaved documents':

Search in ~/Library for xcode (by name) (to search, you go to this folder, enter xcode, with the drop down choose "by name", and then click the "Library delete anything matching in ~/Library/Caches or "~/Library/Autosave Information" or that looks like it might be an unsaved documents

share|improve this answer

I had a similar problem where xcode was hanging on opening one particular project. I wanted a very precise fix without having to remove all the settings. I deleted proj.xcodeproj/project.xcworkspace/xcuserdata/<user>.userdatad/UserInterfaceState.xcuserstate from the .xcodeproj folder and that solved the problem.

So if you are having Xcode hang while attempting to open one particular project, this is the file that you need to delete.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.