在过去的一个月中,我一直在使用Xcode 4.2,没有发生任何事故。两天前,我回到项目中,向应用程序添加了一些导航栏。当我单击.XIB(任一)时,xcode崩溃了。

我尝试启动一个新项目,但结果却完全相同。我sudo完整删除了xcode并进行了全新安装。不幸的是,问题仍然存在,我无法升级到最新的Xcode,因为我可以访问的唯一的Mac是与Mountain Lion不兼容的2006 Macbook。

以下是Xcode启动时的错误消息。

这似乎是可可问题,但我很茫然。


  断言中
  /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:179
  详细信息:Interface Builder遇到与之通信的错误
  iOS模拟器。 “ Interface Builder可可触摸工具”(431)失败
  启动并以状态(空)退出,信号5。请检查
  Console.app,用于“ Interface Builder Cocoa Touch工具”的崩溃报告
  了解更多信息。功能:
  NSDistantObject
  * IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *)线程:{name =(null),num = 1}提示:无回溯:
  0 0x00000000008c184b-[IDEAssertionHandler
  handleFailureInFunction:fileName:lineNumber:messageFormat:arguments:]
  (在IDEKit中)1 0x0000000000061728 _DVTAssertionHandler(在
  DVTFoundation)2 0x00000000000746db _DVTAssertionFailureHandler(在
  DVTFoundation)3 0x000000001cfb7871 IBAttachToCocoaTouchTool(在
  IDEInterfaceBuilderCocoaTouchIntegration)4 0x000000001cfb7332
  IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
  (在IDEInterfaceBuilderCocoaTouchIntegration中)5 0x000000001cfb7118
  IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshallerWithContext
  (在IDEInterfaceBuilderCocoaTouchIntegration中)6 0x000000001cfb7087
  IBAskClassInTargetRuntimeForValueForKeyPathUsingResultMarshaller(在
  IDEInterfaceBuilderCocoaTouchIntegration)7 0x000000001cfb6b57
  IBUserPresentableStringForTargetedDeviceFamily(在
  IDEInterfaceBuilderCocoaTouchIntegration)8 0x000000001cfe5ace
  IBIPhoneOSSdkToDeploymentTargetMapping(在
  IDEInterfaceBuilderCocoaTouchIntegration)9 0x000000001cfe5b22
  IBIPhoneOSSdkToDeploymentTargetMapping(在
  IDEInterfaceBuilderCocoaTouchIntegration)10 0x000000001cfec7cf
  IBUIControlEventTypeToUIControlEventMask(在
  IDEInterfaceBuilderCocoaTouchIntegration)11 0x000000001ca4f44d
  -[NSView(IBViewIntegration)ibWarnings:forDocument:withComputationContext:](在
  IDEInterfaceBuilderKit)12 0x000000001cdec864
  -[NSView(IBAppKitViewIntegration)ibSwizzledNSViewWarnings:forDocument:withComputationContext:](在
  IDEInterfaceBuilderCocoaIntegration)13 0x000000001d00fbb2
  IBUIViewSizeToFillView(在IDEInterfaceBuilderCocoaTouchIntegration中)
  14 0x000000001d01a451 IBMakeBarButtonItemFromPasteboardView(在
  IDEInterfaceBuilderCocoaTouchIntegration)15 0x000000001c9efb44
  -[IBDocument rebuildWarnings](在IDEInterfaceBuilderKit中)16 0x000000001c9efd4a-[IBDocument buildWarningsIfNeeded](在
  IDEInterfaceBuilderKit)17 0x000000001c9efdae-[IBDocument警告]
  (在IDEInterfaceBuilderKit中)18 0x000000001caa305e-[IBIssueProvider
  updateWarningsForOpenDocument:filePath:](在IDEInterfaceBuilderKit中)
  19 0x000000001c9c93e7-[IBIssueProvider updateOpenDocuments](在
  IDEInterfaceBuilderKit)20 0x000000001caa2e85 __50- [IBIssueProvider
  initWithIssueManager:扩展名:] _ block_invoke_051(在
  IDEInterfaceBuilderKit)21 0x00000000000210de
  -[DVTObservingBlockToken watchValueForKeyPath:ofObject:change:context:](在DVTFoundation中)
  22 0x0000000096fe5acb NSKeyValueDidChange(在Foundation中)23
  0x0000000096fca2b6-[NSObject(NSKeyValueObserverNotification)
  didChangeValueForKey:](在基础中)24 0x00000000007ec026
  -[IDEDocumentController addDocument:](在IDEKit中)25 0x000000000081104d + [IDEDocumentController keepEditorDocument:](在
  IDEKit)26 0x0000000000a00375 + [IDEDocumentController
  _retainedNewEditorDocumentWithClass:forURL:withContentsOfURL:ofType:extension:error:]
  (在IDEKit中)27 0x000000000081f0d0 + [IDEDocumentController
  _retainedEditorDocumentForURL:type:error:](在IDEKit中)28 0x000000000081ef25 + [IDEDocumentController
  reservedEditorDocumentForNavigableItem:forUseWithWorkspaceDocument:错误:]
  (在IDEKit中)29 0x0000000000910acd
  IDEUtilitySliceRetainedDocumentsForNavigableItems(在IDEKit中)30
  0x00000000007e3cb6-[IDEUtilityArea _rebuildStackWithNavigableItems:]
  (在IDEKit中)31 0x00000000007e30d0-[IDEUtilityArea
  _rebuildCategoriesAndStack](在IDEKit中)32 0x00000000007e2e23 __41- [IDEUtilityArea initWithNibName:bundle:] _ block_invoke_0(在IDEKit中)33 0x00000000001e7a55-[DVTDelayedValidator doValidation:]
  (在DVTKit中)34 0x0000000096fff86c __NSFirePerformWithOrder(在
  基金会)35 0x0000000093db2dd2 __CFRunLoopDoObservers(在
  CoreFoundation)36 0x0000000093d6eced __CFRunLoopRun(在
  CoreFoundation)37 0x0000000093d6e3c4 CFRunLoopRunSpecific(在
  CoreFoundation)38 0x0000000093d6e1f1 CFRunLoopRunInMode(在
  CoreFoundation)39 0x0000000090447e04 RunCurrentEventLoopInMode(在
  HIToolbox)40 0x0000000090447af5 ReceiveNextEventCommon(在
  HIToolbox)41 0x0000000090447a3e
  BlockUntilNextEventMatchingListInMode(在HIToolbox中)42
  0x00000000987c6595 _DPSNextEvent(在AppKit中)43 0x00000000987c5dd6
  -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:](在AppKit中)44 0x00000000987881f3-[NSApplication运行](在AppKit中)45
  0x0000000098780289 NSApplicationMain(在AppKit中)46
  0x0000000000001f3d 47 0x0000000000000002

最佳答案

如果您真的无法升级到xCode 4.4 ...
您是否使用Time Machine?
尝试倒带完整的系统...

关于iphone - 单击XIB文件时,Xcode 4.2崩溃,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12022492/

10-13 06:07