Xcode started crashing on startup. I've tried all sorts of things, but I still get the same error.
Things I've tried:
- I have removed it using /Developer/Library/uninstall-devtools
- I have deleted ~/Library/Developer and the cache files, etc
- I have completely removed all svn code from my mac
- If I delete the ~/.subversion folder I can get it to at least startup, but if I go to the Repositories in Organizer it crashes. So I've tried deleting the repositories from Organizer by Continuing after a crash. Sometimes lets me, but crashes again next time.
- I have deleted all my projects.
When it first started happening, I got the usual crash error and it beachballed, so I couldn't even get to a stacktrace. I now get a stacktrace, and can navigate around the app, but if I touch anything to do with repositories, or source control - including trying to create a new project or open an existing one, it crashes.
Any help would be greatly appreciated!
Here's the latest crash stacktrace:
ASSERTION FAILURE in /SourceCache/IDEFoundation/IDEFoundation-937/Framework/Classes/Model/SourceControl/IDESourceControlTree.m:119
Details: Invalid location for source tree. Initialization failed.
Object: <IDESourceControlRepository: 0x402516720>
Method: -initWithDictionary:sourceControlExtension:sourceControlManager:
Thread: <NSThread: 0x40010a260>{name = (null), num = 1}
Hints:
0: Replacement view is installing: <RVRepositoryViewController: 0x402519b60 representing: <DVTExtension 0x400d16020: Repositories (Xcode.OrganizerSource.Repositories) v0.1>>
Backtrace:
0 0x00000001062bd466 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
1 0x000000010592d794 _DVTAssertionFailureHandler (in DVTFoundation)
2 0x0000000105e71f3f -[IDESourceControlTree initWithDictionary:sourceControlExtension:sourceControlManager:] (in IDEFoundation)
3 0x0000000105e716f0 -[IDESourceControlRepository initWithDictionary:sourceControlExtension:sourceControlManager:] (in IDEFoundation)
4 0x0000000105e70e9c -[IDESourceControlManager loadRepositories] (in IDEFoundation)
5 0x0000000105e6ba8b -[IDESourceControlManager init] (in IDEFoundation)
6 0x0000000105e6b8c2 __53+[IDESourceControlManager sharedSourceControlManager]_block_invoke_0 (in IDEFoundation)
7 0x00007fff8b5a1224 dispatch_once_f (in libdispatch.dylib)
8 0x0000000105e6b891 +[IDESourceControlManager sharedSourceControlManager] (in IDEFoundation)
9 0x000000010620076b -[IDENavigableItemCoordinator rootNavigableItemInDomain:forWorkspace:] (in IDEKit)
10 0x000000010b93671d -[RVRepositoryViewController sourceControlManagerNavigableItem] (in IDERepositoryViewer)
11 0x00007fff904da434 _NSGetUsingKeyValueGetter (in Foundation)
12 0x00007fff904da3e9 -[NSObject(NSKeyValueCoding) valueForKey:] (in Foundation)
13 0x00007fff904f9c54 -[NSKeyValueNestedProperty object:didAddObservance:recurse:] (in Foundation)
14 0x00007fff904c60ca -[NSKeyValueUnnestedProperty object:didAddObservance:recurse:] (in Foundation)
15 0x00007fff904c4843 -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] (in Foundation)
16 0x00007fff904c31e4 -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] (in Foundation)
17 0x0000000105ae8720 -[DVTBindingHelper bind:toObject:withKeyPath:options:] (in DVTKit)
18 0x0000000105ae81e5 -[DVTObjectBindingUtilities dvtGeneric_bind:toObject:withKeyPath:options:] (in DVTKit)
19 0x000000010b9364d7 -[RVRepositoryViewController loadView] (in IDERepositoryViewer)
20 0x00007fff8d337a8a -[NSViewController view] (in AppKit)
21 0x0000000105ae640b -[DVTViewController view] (in DVTKit)
22 0x0000000105ae95a0 __42-[DVTReplacementView _setupViewController]_block_invoke_0 (in DVTKit)
23 0x00000001058f151e DVTInvokeWithFailureHint (in DVTFoundation)
24 0x0000000105ae9473 -[DVTReplacementView _setupViewController] (in DVTKit)
25 0x0000000105ae9345 -[DVTReplacementView installedViewController] (in DVTKit)
26 0x0000000105af443c -[DVTReplacementView layoutTopDown] (in DVTKit)
27 0x0000000105ae41c3 __84+[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:]_block_invoke_0 (in DVTKit)
28 0x0000000105ae4037 +[DVTAutoLayoutView _recursivelyLayoutSubviewsOfView:populatingSetWithLaidOutViews:] (in DVTKit)
29 0x0000000105af4028 -[DVTDelayedValidator doValidation:] (in DVTKit)
30 0x00007fff90534e18 __NSFirePerformWithOrder (in Foundation)
31 0x00007fff9217ff37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ (in CoreFoundation)
32 0x00007fff9217fe96 __CFRunLoopDoObservers (in CoreFoundation)
33 0x00007fff92155159 __CFRunLoopRun (in CoreFoundation)
34 0x00007fff92154ae6 CFRunLoopRunSpecific (in CoreFoundation)
35 0x00007fff8cbc53d3 RunCurrentEventLoopInMode (in HIToolbox)
36 0x00007fff8cbcc58f ReceiveNextEventCommon (in HIToolbox)
37 0x00007fff8cbcc4ca BlockUntilNextEventMatchingListInMode (in HIToolbox)
38 0x00007fff8d2093f1 _DPSNextEvent (in AppKit)
39 0x00007fff8d208cf5 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
40 0x00007fff8d20562d -[NSApplication run] (in AppKit)
41 0x00007fff8d48480c NSApplicationMain (in AppKit)
42 0x00000001058c0eec (in Xcode)