即使在重新安装后,Xcode 4在启动时崩溃或使用ASSERTION FAILURE访问存储库

时间:2011-10-31 00:41:49

标签: svn xcode4.2

Xcode在启动时开始崩溃。我尝试了各种各样的事情,但我仍然得到同样的错误。

我尝试过的事情:

  • 我已使用/ Developer / Library / uninstall-devtools
  • 删除了它
  • 我删除了〜/ Library / Developer和缓存文件等
  • 我已经完全删除了我的mac
  • 中的所有svn代码
  • 如果我删除〜/ .subversion文件夹,我至少可以启动它,但是如果我去管理器中的存储库它会崩溃。所以我试图在崩溃后继续从Organizer中删除存储库。有时候让我,但下次再次崩溃。
  • 我删除了所有项目。

当它第一次开始发生时,我得到了通常的崩溃错误并且它是海滩式的,所以我甚至无法进入堆栈跟踪。我现在得到一个堆栈跟踪,并可以在应用程序中导航,但如果我触摸与存储库或源代码控制有关的任何事情 - 包括尝试创建新项目或打开现有项目,它就会崩溃。

非常感谢任何帮助!

这是最新的崩溃堆栈跟踪:

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)

3 个答案:

答案 0 :(得分:2)

defaults write com.apple.dt.xcode DVTSourceControlAccountDefaultsKey {}
defaults write com.apple.dt.xcode IDESourceControlProjects {}
defaults write com.apple.dt.xcode IDESourceControlRecentsFavoritesRepositoriesUserDefaultsKey {}
defaults write com.apple.dt.xcode IDESourceControlRepositoryDefaultsKey {}

^终端似乎在Xcode 7 beta 3(我最近遇到类似的问题)中为我清除了有问题的问题。

答案 1 :(得分:0)

好的,修好了。

我使用/ Developer / Library / uninstall-devtools --mode = all再次完全删除了xcode(第4次)然后删除了我可以找到的用户目录中文件的所有引用。

例如:〜/ Library / Developer&amp;在〜/ Library / Cache com.apple.dt * com.apple.xcode *。

我还删除了机器上每个subversion文件的所有痕迹。哦,删除xcode后重启,然后再删除其他文件,然后安装xcode,然后重启。今天工作得很好。

显然有一个文件在哪里引用了导致xcode崩溃的任何内容的subversion处理代码。

答案 2 :(得分:0)

首次在工作中设置新机器时发生了这种情况,我在/Users/*user*//Library/Preferences/com.apple.dt.Xcode.plist中找到了SVN URL我尝试手动删除并编辑它,但xcode不知何故继续添加它(或者一些OS守护程序无论如何)。

我的最终解决方案是在xcode的首选项中禁用源代码控制,重启(不崩溃),然后重新启用源代码管理。

也相关:Xcode 5 crashes with SVN version 1.7 - self signed certificate