Skip navigation

I recently updated my Macbook Pro to Mountain Lion and then downloaded and installed Xcode 4.5.2.  I still had Xcode 3.2.6 installed as well, and my goal was to update my existing projects to the newer version.  Unfortunately when I tried to load my first project, Xcode just hung and sat there loading forever until I Force Quit it.  I soon realized that this same issue occurred even if I tried to create a new project, tried to open the Repositories tab in Organizer, or even if I hovered over Xcode’s File -> Source Control menu item.  My system log continuously showed the same error:

Nov 12 14:14:50 MacBook-Pro.local Xcode[3307]: [MT] DVTAssertions: Warning in /SourceCache/IDEFoundation/IDEFoundation-1880/Framework/Classes/Model/SourceControl/IDESourceControlTree.m:130
Details: Invalid location for source tree. Initialization failed: {
IDESourceControlRepositoryLocationKey = "";
authenticated = NO;
name = iPhone;
online = YES;
path = "";
system = "scm.subversion";
}
Object:
Method: -initWithDictionary:sourceControlExtension:sourceControlManager:
Thread: {name = (null), num = 1}
Please file a bug at http://bugreport.apple.com with this warning message and any useful information you can provide.

After scouring the web for answers, deleting caches and preferences, and even re-installing Xcode, I finally stumbled across this link (http://stackoverflow.com/questions/10767061/xcode-4-3-2-organizer-freezes) which recommended doing a Hard Reset of Xcode.  I had no idea what that meant, but this link (http://www.developers-life.com/uninstallresetting-xcode.html) helped me out.  Basically all I had to do was open Terminal and run the following three commands:

defaults delete com.apple.Xcode
defaults delete com.apple.dt.Xcode
rm -rf ~/Library/Application\ Support/Xcode

After this I was finally able to open Xcode and create a new project successfully.

2 Comments

  1. I cannot begin to tell you how grateful I am for this. I tried many (_many_) different things I read all across the spectrum. This did it.

    Perfect.

  2. many thanks. i was so frustrated…


Leave a Reply

Your email address will not be published. Required fields are marked *