Xcode 5 崩溃 -- Xcode 意外退出

11

当我在项目导航器中选择任何文件或尝试编辑文件时,来自App Store的Xcode 5会崩溃。我已经删除了所有插件和应用程序派生数据,但它仍然会崩溃。

有人知道如何修复这个问题以及为什么会发生吗?

下面是错误的第一部分。

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Application Specific Information:
ProductBuildVersion: 5A1412
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-3532/Framework/Classes/Protocols/DVTInvalidation.m:243
Details:  <IDESourceControlCredentialsValidator, 0x7faec5e3c9b0> was never invalidated.

我不确定这是否有帮助,但这是回溯信息:

Backtrace for allocation (if _creationBacktrace is set):
 (null)
Object:   <IDESourceControlCredentialsValidator: 0x7f86dceeb080>
Method:   -dealloc
Thread:   <NSThread: 0x7f86d8414c80>{name = (null), num = 1}
Hints:   None
Backtrace:
  0  0x000000010e3a1188 -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] (in IDEKit)
  1  0x000000010d137655 _DVTAssertionHandler (in DVTFoundation)
  2  0x000000010d137984 _DVTAssertionFailureHandler (in DVTFoundation)
  3  0x000000010d20c6a6 _DVTInvalidation_DeallocSuper (in DVTFoundation)
  4  0x000000010e33e2a3 -[IDESourceControlSSLAuthenticationWindowController .cxx_destruct] (in IDEKit)
  5  0x00007fff8c00bfcc object_cxxDestructFromClass(objc_object*, objc_class*) (in libobjc.A.dylib)
  6  0x00007fff8c005922 objc_destructInstance (in libobjc.A.dylib)
  7  0x00007fff8c005fa0 object_dispose (in libobjc.A.dylib)
  8  0x000000010d161995 __DVTSetupKVODeallocAssertions_block_invoke_371 (in DVTFoundation)
  9  0x00007fff865797fa -[NSResponder dealloc] (in AppKit)
 10  0x00007fff864af162 -[NSWindowController dealloc] (in AppKit)
 11  0x00007fff86623901 -[NSWindowController release] (in AppKit)
 12  0x00007fff867595b0 -[NSAutounbinder dealloc] (in AppKit)
 13  0x00007fff8c006230 (anonymous namespace)::AutoreleasePoolPage::pop(void*) (in libobjc.A.dylib)
 14  0x00007fff87a0cd72 _CFAutoreleasePoolPop (in CoreFoundation)
 15  0x00007fff8c52447a -[NSAutoreleasePool drain] (in Foundation)
 16  0x00007fff8657a27e -[NSApplication run] (in AppKit)
 17  0x00007fff8651ebd6 NSApplicationMain (in AppKit)
 18  0x00007fff91f377e1 start (in libdyld.dylib)

abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib          0x00007fff903ad212 __pthread_kill + 10
1   libsystem_c.dylib               0x00007fff8a7fcb54 pthread_kill + 90
2   libsystem_c.dylib               0x00007fff8a840dce abort + 143
3   com.apple.dt.IDEKit             0x000000010e3a0a93 +[IDEAssertionHandler _handleAssertionWithLogString:reason:] + 763
4   com.apple.dt.IDEKit             0x000000010e3a12ee -[IDEAssertionHandler handleFailureInMethod:object:fileName:lineNumber:messageFormat:arguments:] + 1117
5   com.apple.dt.DVTFoundation      0x000000010d137655 _DVTAssertionHandler + 421
6   com.apple.dt.DVTFoundation      0x000000010d137984 _DVTAssertionFailureHandler + 322
7   com.apple.dt.DVTFoundation      0x000000010d20c6a6 _DVTInvalidation_DeallocSuper + 480
8   com.apple.dt.IDEKit             0x000000010e33e2a3 -[IDESourceControlSSLAuthenticationWindowController .cxx_destruct] + 94
9   libobjc.A.dylib                 0x00007fff8c00bfcc object_cxxDestructFromClass(objc_object*, objc_class*) + 100
10  libobjc.A.dylib                 0x00007fff8c005922 objc_destructInstance + 91
11  libobjc.A.dylib                 0x00007fff8c005fa0 object_dispose + 22
12  com.apple.dt.DVTFoundation      0x000000010d161995 __DVTSetupKVODeallocAssertions_block_invoke_371 + 264
13  com.apple.AppKit                0x00007fff865797fa -[NSResponder dealloc] + 129
14  com.apple.AppKit                0x00007fff864af162 -[NSWindowController dealloc] + 616
15  com.apple.AppKit                0x00007fff86623901 -[NSWindowController release] + 159
16  com.apple.AppKit                0x00007fff867595b0 -[NSAutounbinder dealloc] + 51
17  libobjc.A.dylib                 0x00007fff8c006230 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 464
18  com.apple.CoreFoundation        0x00007fff87a0cd72 _CFAutoreleasePoolPop + 34
19  com.apple.Foundation            0x00007fff8c52447a -[NSAutoreleasePool drain] + 154
20  com.apple.AppKit                0x00007fff8657a27e -[NSApplication run] + 736
21  com.apple.AppKit                0x00007fff8651ebd6 NSApplicationMain + 869
22  libdyld.dylib                   0x00007fff91f377e1 start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff903add16 kevent + 10
1   libdispatch.dylib               0x00007fff8641cdea _dispatch_mgr_invoke + 883
2   libdispatch.dylib               0x00007fff8641c9ee _dispatch_mgr_thread + 54

Thread 2:: com.apple.NSURLConnectionLoader
0   libsystem_kernel.dylib          0x00007fff903ab686 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff903aac42 mach_msg + 70
2   com.apple.CoreFoundation        0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3   com.apple.CoreFoundation        0x00007fff87a11916 __CFRunLoopRun + 1078
4   com.apple.CoreFoundation        0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5   com.apple.Foundation            0x00007fff8c501546 +[NSURLConnection(Loader) _resourceLoadLoop:] + 356
6   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
7   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
8   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 3:
0   libsystem_kernel.dylib          0x00007fff903ab686 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff903aac42 mach_msg + 70
2   com.apple.CoreFoundation        0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3   com.apple.CoreFoundation        0x00007fff87a11916 __CFRunLoopRun + 1078
4   com.apple.CoreFoundation        0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5   com.apple.DTDeviceKitBase       0x000000011466875a -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 164
6   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
7   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
8   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 4:: com.apple.CFSocket.private
0   libsystem_kernel.dylib          0x00007fff903ad322 __select + 10
1   com.apple.CoreFoundation        0x00007fff87a50f46 __CFSocketManager + 1302
2   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
3   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 5:: DYMobileDeviceManager
0   libsystem_kernel.dylib          0x00007fff903ab686 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff903aac42 mach_msg + 70
2   com.apple.CoreFoundation        0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3   com.apple.CoreFoundation        0x00007fff87a11916 __CFRunLoopRun + 1078
4   com.apple.CoreFoundation        0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5   com.apple.Foundation            0x00007fff8c5647ee -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 268
6   com.apple.Foundation            0x00007fff8c4fd1aa -[NSRunLoop(NSRunLoop) run] + 74
7   com.apple.GPUToolsMobileFoundation  0x0000000118afe9bb -[DYMobileDeviceManager _deviceNotificationThread:] + 132
8   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
9   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
10  libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 6:: CVDisplayLink
0   libsystem_kernel.dylib          0x00007fff903ad0fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8a7fffe9 _pthread_cond_wait + 869
2   com.apple.CoreVideo             0x00007fff8b5872a1 CVDisplayLink::runIOThread() + 689
3   com.apple.CoreVideo             0x00007fff8b586fd7 startIOThread(void*) + 148
4   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 7:
0   libsystem_kernel.dylib          0x00007fff903ad0fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8a7fffe9 _pthread_cond_wait + 869
2   com.apple.Xcode.DevToolsCore    0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
4   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib          0x00007fff903ad0fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8a7fffe9 _pthread_cond_wait + 869
2   com.apple.Xcode.DevToolsCore    0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
4   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 9:
0   libsystem_kernel.dylib          0x00007fff903ad0fa __psynch_cvwait + 10
1   libsystem_c.dylib               0x00007fff8a7fffe9 _pthread_cond_wait + 869
2   com.apple.Xcode.DevToolsCore    0x0000000113436166 -[XCBlockQueue _processBlocksInThreadSlotNumber:] + 506
3   com.apple.Foundation            0x00007fff8c55f562 __NSThread__main__ + 1345
4   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
5   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 10:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 11:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 12:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 13:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 14:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 15:
0   libsystem_kernel.dylib          0x00007fff903ad6d6 __workq_kernreturn + 10
1   libsystem_c.dylib               0x00007fff8a7fdf4c _pthread_workq_return + 25
2   libsystem_c.dylib               0x00007fff8a7fdd13 _pthread_wqthread + 412
3   libsystem_c.dylib               0x00007fff8a7e81d1 start_wqthread + 13

Thread 16:
0   libsystem_kernel.dylib          0x00007fff903ab686 mach_msg_trap + 10
1   libsystem_kernel.dylib          0x00007fff903aac42 mach_msg + 70
2   com.apple.CoreFoundation        0x00007fff87a0c233 __CFRunLoopServiceMachPort + 195
3   com.apple.CoreFoundation        0x00007fff87a11916 __CFRunLoopRun + 1078
4   com.apple.CoreFoundation        0x00007fff87a110e2 CFRunLoopRunSpecific + 290
5   com.apple.DebugSymbols          0x00007fff8728a590 SpotlightQueryThread(void*) + 356
6   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
7   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 17:
0   libsystem_kernel.dylib          0x00007fff903ad386 __semwait_signal + 10
1   libsystem_c.dylib               0x00007fff8a885800 nanosleep + 163
2   com.apple.CoreSymbolication     0x00007fff8fee2358 0x7fff8fecc000 + 90968
3   libsystem_c.dylib               0x00007fff8a7fb7a2 _pthread_start + 327
4   libsystem_c.dylib               0x00007fff8a7e81e1 thread_start + 13

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000000  rbx: 0x0000000000000006  rcx: 0x00007fff52b72108  rdx: 0x0000000000000000
  rdi: 0x0000000000000c07  rsi: 0x0000000000000006  rbp: 0x00007fff52b72130  rsp: 0x00007fff52b72108
   r8: 0x00007fff769b7278   r9: 0x0000000000000141  r10: 0x0000000020000000  r11: 0x0000000000000206
  r12: 0x00007fff52b72248  r13: 0x000000010ea71680  r14: 0x00007fff769b8180  r15: 0x00007fff52b721f0
  rip: 0x00007fff903ad212  rfl: 0x0000000000000206  cr2: 0x00007f86d883a400
Logical CPU: 0

有人知道如何修复这个问题以及为什么会发生吗?还有其他人看到过这种情况吗? - Iggy
我删除了Xcode并从应用商店重新安装...同样的事情发生了... - Iggy
你现在使用的Xcode版本是哪个?5A1412被分发为GM种子,但今天有一个5A1413可用。请检查App Store以获取更新。 - bneely
已解决 - 请查看我在类似问题的答案:http://stackoverflow.com/a/19078588/1126757。 - Matan Poreh
我发现这个问题是这样的:https://dev59.com/NXjZa4cB1Zd3GeqPe4TQ - Eric
显示剩余2条评论
3个回答

57

我也遇到过这个问题。为了防止xCode5崩溃,请按照以下步骤进行操作。 Xcode > 首选项 > 源代码管理 > 取消勾选启用源代码管理。之后,Xcode将不会崩溃.. :)


那么对于提交文件和其他 SVN 操作,我们必须使用其他工具吗? - Amit Battan
我猜是的,直到苹果解决这个问题。 - Nishith Sheth
很遗憾,对我没有帮助 :( - Max Filippov
另一个选择可能是删除 Xcode 项目中的用户特定配置文件... - nielsbot
难以置信,有人会给出这样的答案。如果源代码控制是为了与源代码控制管理器进行通信方便,那么你怎么能禁用它呢?此外,苹果不会修复关于Xcode的任何问题。当您请求超过预期的请求时,它会崩溃。因此,由于Xcode不知道要执行哪些操作,首先会禁用自身并崩溃....哈哈 - Abdul Yasin
显示剩余2条评论

3

我在使用Xcode 6.1时第一次遇到了这个问题。

我刚刚克隆了这个项目,但是只要索引过程开始,它就会崩溃。像之前的回答建议的那样禁用源代码控制,但仍然崩溃。

在我这种情况下,问题在于目标设备当时连接到我的MAC上,但没有包含在我安装在MAC上的任何配置文件中。在索引过程开始之前将目标更改为任何模拟器,可以解决我的问题。


这真的很烦人。你找到解决方法了吗? - Raj
你是否检查过目标不是设备而是模拟器选项之一?一旦我选择了iOS模拟器,它就停止崩溃了,在清理项目后,我可以毫无问题地为iOS模拟器或设备构建。 希望这有所帮助。 - jjramos

0

我在从xcode7.2升级到7.3时遇到了同样的问题。除了冲突的插件之外,一切都很好。

尝试删除您可能已安装在xcode中的插件,它将正常工作。在我的情况下,Alcatraz插件是罪魁祸首。只需从路径/Library/Application Support/Developer/Shared/Xcode中删除它,一切都会变得很好。

P.S:确保您的Mac OS与您正在安装的xcode兼容!有时盲目安装xcode而不升级操作系统(就像我一样;))可能会导致这种危险行为。祝你好运!


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接