Xcode 4.2在发布时崩溃

时间:2013-12-18 08:42:18

标签: xcode xcode4.2 osx-snow-leopard

我刚加入开发者计划,为Snow Leopard 10.6.8下载了Xcode 4.2。

第一次启动时,它出现了这个错误:

Xcode遇到内部逻辑错误。选择“继续”继续以不一致的状态运行Xcode。选择“崩溃”以暂停Xcode并使用Crash Reporter提交错误。选择“崩溃”将导致丢失所有未保存的数据。

详细

UNCAUGHT EXCEPTION (NSInternalInconsistencyException): Couldn't load plug-in 'com.apple.dt.IDE.IDEiPhoneSupport' while firing fault for extension 'Xcode.Device.iPhoneSimulator'
UserInfo: {
    NSUnderlyingError = "Error Domain=DVTPlugInErrorDomain Code=2 UserInfo=0x200819720 \"Loading a plug-in failed.\" Underlying Error=(Error Domain=NSCocoaErrorDomain Code=3587 UserInfo=0x200924300 \"The bundle \U201cIDEiPhoneSupport\U201d couldn\U2019t be loaded because it is damaged or missing necessary resources.\" (dlopen_preflight(/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin/Contents/MacOS/IDEiPhoneSupport): Library not loaded: /System/Library/PrivateFrameworks/DeviceLink.framework/Versions/A/DeviceLink\n  Referenced from: /Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/PrivatePlugIns/IDEiPhoneSupport.ideplugin/Contents/MacOS/IDEiPhoneSupport\n  Reason: image not found))";
}
Hints: None
Backtrace:
  0  0x00007fff87a1e766 __exceptionPreprocess (in CoreFoundation)
  1  0x00007fff87d35f03 objc_exception_throw (in libobjc.A.dylib)
  2  0x000000010001bdf0 -[DVTExtension _fireExtensionFault] (in DVTFoundation)
  3  0x0000000100006096 __38-[DVTDispatchLock performLockedBlock:]_block_invoke_0 (in DVTFoundation)
  4  0x00007fff87589fbb dispatch_barrier_sync_f (in libSystem.B.dylib)
  5  0x000000010000603f -[DVTDispatchLock performLockedBlock:] (in DVTFoundation)
  6  0x000000010001bb8b -[DVTExtension _valueForKey:inParameterData:usingSchema:] (in DVTFoundation)
  7  0x000000010001bacf -[DVTExtension valueForKey:] (in DVTFoundation)
  8  0x000000010001b2a7 +[DVTDevice _knownDeviceLocators] (in DVTFoundation)
  9  0x000000010001ae00 -[DVTDeviceManager startLocating] (in DVTFoundation)
 10  0x0000000100568fbc IDEInitialize (in IDEFoundation)
 11  0x00000001008e4f58 -[IDEApplicationController applicationWillFinishLaunching:] (in IDEKit)
 12  0x00007fff88a32ad5 _nsnote_callback (in Foundation)
 13  0x00007fff879c5fd0 __CFXNotificationPost (in CoreFoundation)
 14  0x00007fff879b2548 _CFXNotificationPostNotification (in CoreFoundation)
 15  0x00007fff88a29a36 -[NSNotificationCenter postNotificationName:object:userInfo:] (in Foundation)
 16  0x00007fff812e7901 -[NSApplication finishLaunching] (in AppKit)
 17  0x00007fff812e7554 -[NSApplication run] (in AppKit)
 18  0x00007fff812e03b0 NSApplicationMain (in AppKit)
 19  0x0000000100000eec
 20  0x0000000000000002

我认为之前在Mac上安装了Xcode,但我无法在应用程序的任何地方看到它,我只是通过搜索聚光灯来启动Xcode。它出现在/ Developer / Applications

发生了什么事?有没有人见过这个错误?有解决方法吗?

更新

我点击了几次只是为了看看会发生什么,Xcode确实开始了。现在我想知道我是否应该继续使用它或寻找这个问题的根本原因。有些东西告诉我,下面的问题会在以后以奇怪的方式表现出来。

更新2:

没有任何作用,只是挂起。要用

卸载xcode
sudo /Developer/Library/uninstall-devtools --mode=all

并尝试重新安装

1 个答案:

答案 0 :(得分:0)

解决方案是:

  1. 删除所有开发工具sudo /Developer/Library/uninstall-devtools --mode=all

  2. 重启Mac(可能是可选的,但无论如何都是这样做的)

  3. 重新安装Xcode