每次打开Xcode时Xcode都会意外退出

时间:2016-05-13 10:01:42

标签: xcode xcode7.3

当我打开xcode版本7.3.1时显示此消息 “Xcode意外退出”

我测试了这个命令

  1. sudo gem install cocoapods
  2. sudo / Aplication / Xcode ... / xcode
  3. 我看到这个链接但不适合我 enter link description here

    我目前的操作系统:Yosemite版本10.90

    但显示此对话框

    日志:

    2016-05-13 14:08:10.489 Xcode[4837:85855] [MT] DVTAssertions: ASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sources/IDEInterfaceBuilder/IDEInterfaceBuilder-10117/InterfaceBuilderKit/WidgetIntegration/IBIntegratorManager.m:318
    
    Details:  Failed to find integrator bundle for class IBAbstractViewController
    
    Object:   <IBIntegratorManager: 0x7fe3cb775320>
    
    Method:   -registerIntegrator:remainingIntegratorsBySuperclass:
    
    Thread:   <NSThread: 0x7fe3cb43f480>{number = 1, name = main}
    
    Hints:   None
    
    2016-05-13 14:08:10.509 Xcode[4837:85855] [MT] DVTAssertions: 
    
    Backtrace:
     0   -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in IDEKit)
    
      1   _DVTAssertionHandler (in DVTFoundation)
    
      2   _DVTAssertionFailureHandler (in DVTFoundation)
    
      3   -[IBIntegratorManager registerIntegrator:remainingIntegratorsBySuperclass:] (in IDEInterfaceBuilderKit)
    
      4   -[IBIntegratorManager registerIntegrator:remainingIntegratorsBySuperclass:] (in IDEInterfaceBuilderKit)
    
      5   -[IBIntegratorManager registerIntegrators:] (in IDEInterfaceBuilderKit)
    
      6   -[IBIntegratorManager loadAllIntegrators] (in IDEInterfaceBuilderKit)
    
      7   -[IBInterfaceBuilderPlugin init] (in IDEInterfaceBuilderKit)
    
      8   +[IBInterfaceBuilderPlugin ide_initializeWithOptions:error:] (in IDEInterfaceBuilderKit)
    
      9   _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
    
     10   _IDEInitializeOnePlugInAndPrerequisites (in IDEFoundation)
    
     11   _IDEInitializePlugIns (in IDEFoundation)
    
     12   __IDEInitialize_block_invoke (in IDEFoundation)
    
     13   IDESetSafeToLoadMobileDevice (in IDEFoundation)
    
     14   -[IDEWelcomeWindowController _showFirstLaunchExperienceIfAppropriate] (in IDEKit)
    
     15   -[IDEWelcomeWindowController openWelcomeWindowAfterFirstLaunchExperienceIfAppropriate:] (in IDEKit)
    
     16   -[IDEApplicationController applicationOpenUntitledFile:] (in IDEKit)
    
     17   -[NSApplication _doOpenUntitled] (in AppKit)
    
     18   __58-[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:]_block_invoke (in AppKit)
    
     19   __97-[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:]_block_invoke_3 (in AppKit)
    
     20   -[NSDocumentController(NSInternal) _autoreopenDocumentsIgnoringExpendable:withCompletionHandler:] (in AppKit)
    
     21   -[NSApplication _reopenWindowsAsNecessaryIncludingRestorableState:registeringAsReady:completionHandler:] (in AppKit)
    
     22   -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] (in AppKit)
    
     23   -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] (in AppKit)
    
     24   -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] (in Foundation)
    
     25   -[NSAppleEventManager(DVTAssertionOverrides) swizzleDispatchRawAppleEvent:withRawReply:handlerRefCon:] (in IDEKit)
    
     26   _NSAppleEventManagerGenericHandler (in Foundation)
    
     27   aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) (in AE)
    
     28   dispatchEventAndSendReply(AEDesc const*, AEDesc*) (in AE)
    
     29   aeProcessAppleEvent (in AE)
    
     30   AEProcessAppleEvent (in HIToolbox)
    
     31   _DPSNextEvent (in AppKit)
    
     32   -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit)
    
     33   -[DVTApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in DVTKit)
    
     34   -[NSApplication run] (in AppKit)
    
     35   NSApplicationMain (in AppKit)
    
     36  0x000000010c71739b (in Xcode)
    
     37   start (in libdyld.dylib)
    

1 个答案:

答案 0 :(得分:2)

只需删除XCode保存状态即可。它对我有用。 这该怎么做 ?让我们试试

导航至〜/ Library / Saved Application State /

- Command + Shift + G

这很容易 导航到已保存的应用程序文件夹后

您将看到名为com.apple的已保存应用状态列表。(应用程序名称).savedState

删除名为 com.apple.dt.xcode.savedState

的文件夹

再次享受xcode:)