每次打开 Xcode 时 Xcode 都会意外退出
当我打开 xcode 7.3.1 版时显示此消息Xcode 意外退出"
when i open xcode version 7.3.1 show this message "Xcode quits unexpectedly"
我测试这个命令
- sudo gem 安装 cocoapods
- sudo/Aplication/Xcode.../xcode
我看到这个链接但对我不起作用在此处输入链接描述
i see this link but not working for me enter link description here
我当前的操作系统:优胜美地 10.90 版
my current os : Yosemite Version 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)
只需删除 XCode 保存状态即可.它对我有用.这该怎么做 ?让我们试试
Just delete XCode saved state. It worked for me. How to do this ? lets try
导航到 ~/Library/Saved Application State/
——使用 Command+Shift+G
– this is easy with Command+Shift+G
导航到保存的应用程序文件夹后您将看到一个名为 com.apple.(Application Name).savedState
after navigating to saved application folder You’ll see a list of saved app states named com.apple.(Application Name).savedState
删除名为com.apple.dt.xcode.savedState
再次享受 xcode :)
Enjoy xcode again :)