2013-10-24 103 views
5

更新至OS X Mavericks后,我无法启动Xcode 5.0.1。请帮忙。OS X Mavericks上的Xcode 5.0.1崩溃

这里是崩溃报告的消息:

Application Specific Information: ProductBuildVersion: 5A2053 UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Error getting value for key 'delegateClass' of extension 'Xcode.RepositoriesViewer.MenuDefinition.HelpContextualMenu' in plug-in 'com.apple.dt.IDE.IDERepositoryViewer' UserInfo: { NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 \"Loading a plug-in failed.\" UserInfo=0x7ff8bf440f10 {DVTPlugInIdentifierErrorKey=com.apple.dt.IDE.IDERepositoryViewer, DVTPlugInExecutablePathErrorKey=/Applications/Xcode.app/Contents/PlugIns/IDERepositoryViewer.ideplugin/Contents/MacOS/IDERepositoryViewer, NSLocalizedRecoverySuggestion=The plug-in or one of its prerequisite plug-ins may be missing or damaged and may need to be reinstalled., NSLocalizedDescription=Loading a plug-in failed., NSFilePath=/Applications/Xcode.app/Contents/PlugIns/IDERepositoryViewer.ideplugin, NSLocalizedFailureReason=The plug-in \U201ccom.apple.dt.IDE.IDERepositoryViewer\U201d at path \U201c/Applications/Xcode.app/Contents/PlugIns/IDERepositoryViewer.ideplugin\U201d could not be loaded. The plug-in or one of its prerequisite plug-ins may be missing or damaged., NSUnderlyingError=0x7ff8bf43c8e0 \"The bundle \U201cIDERepositoryViewer\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\"}";

+1

请确保你提供一个雷达。 – quellish

回答

10

我解决这样说:

/Applications/Xcode.app/Contents/PlugIns 

并删除以下目录(也许你应该备份第一个)

IDERepositoryViewer.ideplugin 

之后,我可以开始使用Xcode。也许这个解决方案有一些限制,但我目前没有看到任何。

+1

大声笑。 (现在一起唱)“前面可能会有麻烦......” – trojanfoe

+0

奇怪的错误 - >奇怪的解决方案......看,我能够再次完成我的任务,所以它现在是好的,直到下一次Xcode更新(希望会被修复) – ljboy

+0

谢谢你的手,虽然我把它移动了而不是删除它。 –

-2

我认为你必须检查构建路径。

+0

构建路径?它在Xcode启动后崩溃。 – ljboy

+1

请按照下列步骤操作。 Xcode>首选项>源代码管理>取消选中启用源代码控制。 – Pravin

+0

我可以试试这个,因为我现在可以启动Xcode。但是,如果不删除此插件,我无法启动Xcode,因此无法进入“首选项”窗口。 – ljboy

1

今天早上我升级了双Xcode系统到Xcode 5.0.2。我在名为“Xcode”的Xcode 5.0和名为“Xcode5”的Xcode 5.0中使用了Xcode 4.6.3。在升级之后,我只有“Xcode”,并且在启动时崩溃,并且IDERepositoryViewer发生同样的错误.ideplugin

查看插件的version.plist文件,我看到值为“4.6.3”的键“CFBundleShortVersionString”所以我认为它以某种方式保留了Xcode 4.6.3的插件。

一旦我删除它,Xcode 5.0.2工作正常。